Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Joelito
Experienced Solver
Experienced Solver
Posts: 98
Joined: Wed Jun 18, 2008 8:35 pm
Location: Tijuana, BC, México

Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by Joelito » Fri Apr 24, 2015 6:17 pm

Hi! When trying to build wxmsw 3.0.2 with msvc++ 20003 toolkit I got this error:

Code: Select all

error LNK2016: Absolute symbol '@comp.id' used as target of DIR32NB relocation
LINK : fatal error LNK1165: link failed because of fixup errors
NMAKE : fatal error U1077: 'link' : return code '0x48d'
Stop.
And I'm using this build options:

Code: Select all

nmake.exe -f makefile.vc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
I'm using virtualbox and I have Windows XP as guest, with all the SDK req. (platform 2003 and .net 1.1)
Any ideas?
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with openbox + tint2; Guest: WinXP SP3 + wxMSW 3.0.2 + msvc 2010.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

User avatar
doublemax
Moderator
Moderator
Posts: 14511
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by doublemax » Fri Apr 24, 2015 6:51 pm

Which compiler version? You need at least VS2005 (VC 8). Support for VS2003 (VC 7.1) was dropped in wx 3.0.
Use the source, Luke!

Joelito
Experienced Solver
Experienced Solver
Posts: 98
Joined: Wed Jun 18, 2008 8:35 pm
Location: Tijuana, BC, México

Re: Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by Joelito » Fri Apr 24, 2015 9:28 pm

Hi, thanks for the reply...Dropped? Well..I managed to build with this options:

Code: Select all

nmake.exe -f makefile.vc MONOLITHIC=0 SHARED=1 UNICODE=1 BUILD=release
Guess I'll stick with the current one, then. Thanks :)
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with openbox + tint2; Guest: WinXP SP3 + wxMSW 3.0.2 + msvc 2010.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

User avatar
tierra
Site Admin
Site Admin
Posts: 1342
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Re: Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by tierra » Sat Apr 25, 2015 7:13 pm

doublemax wrote:Which compiler version? You need at least VS2005 (VC 8). Support for VS2003 (VC 7.1) was dropped in wx 3.0.
This is incorrect. VC6 support wasn't dropped until 3.1+. Also, VC7 is still supported in 3.1+ even when VC6 support was dropped.

Of course, I'd still recommend that Joelito upgrade to at least VC9 (Visual C++ 2008) as soon as possible. It's the best option if you still need support for wxWidgets 2.8.

See this for more info:
https://wiki.wxwidgets.org/Microsoft_Vi ... nformation

User avatar
doublemax
Moderator
Moderator
Posts: 14511
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by doublemax » Sat Apr 25, 2015 7:36 pm

This is incorrect. VC6 support wasn't dropped until 3.1+. Also, VC7 is still supported in 3.1+ even when VC6 support was dropped.
I used VS2003 until a few months ago and i can say for sure that even 3.0 does not compile out of the box with it. You'd have to disable several things that heavily rely on template stuff that the VS2003 compiler does not understand, e.g. wxAny or Bind() support.
Use the source, Luke!

User avatar
tierra
Site Admin
Site Admin
Posts: 1342
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Re: Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by tierra » Sun Apr 26, 2015 7:54 am

That's unfortunate since I know VC6 wasn't officially dropped until 3.1:
https://groups.google.com/d/msg/wx-dev/ ... 5fTFit6D0J

Joelito
Experienced Solver
Experienced Solver
Posts: 98
Joined: Wed Jun 18, 2008 8:35 pm
Location: Tijuana, BC, México

Re: Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by Joelito » Tue Apr 28, 2015 5:00 am

tierra wrote: Of course, I'd still recommend that Joelito upgrade to at least VC9 (Visual C++ 2008) as soon as possible. It's the best option if you still need support for wxWidgets 2.8.
Thanks for the tip, the thing is that "express" editions are bigger. I only need the compiler and a few sdks...
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with openbox + tint2; Guest: WinXP SP3 + wxMSW 3.0.2 + msvc 2010.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

User avatar
tierra
Site Admin
Site Admin
Posts: 1342
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Re: Error building wxmsw 3.0.2 & vc++ 2003 toolkit

Post by tierra » Fri May 01, 2015 4:59 am

Well, it's worth noting that one reason it's bigger is because the Windows SDK comes pre-packaged with VC9 Express, while the older versions required downloading and installing it separately. Either case, it's obviously required for wxWidgets.

Besides, considering how cheap disk space is these days, that's a pretty poor excuse for not upgrading. Especially when you really have very little choice as support for the older versions is dropped, or as pointed out here, just isn't well tested anymore.

Post Reply