MSVC 8.0 (VC++ 2005 Express) DLL Linker Errors
Dave Bee
davebeeus at yahoo.com
Wed Feb 7 10:44:47 PST 2007
After years of using MSVC 6.0 only, I tried to upgrade
my compiler to MSVC 8.0 (VC++ 2005 Express Edition) -
and use it with wxWidgets 2.6.3 (on Windows 2000).
I followed the instructions in the following link to
the letter:
http://www.wxwidgets.org/wiki/index.php/MSVC_.NET_Setup_Guide#MSVC_8.0_.282005.29_DLL_Linker_Issues
All seemed well - native win32 apps compile, link and
run without any problem. The wxWidgets samples build
and run successfully as well - even in DLL Unicode.
However, for some reason, a wxWidgets project that I
wrote and works perfectly when built under MSVC 6.0,
cannot pass the linker stage. I keep getting lots of
errors like the following one:
error LNK2001: unresolved external symbol "public:
virtual bool __thiscall wxApp::Initialize(int
&,unsigned short * *)"
(?Initialize at wxApp@@UAE_NAAHPAPAG at Z)
I compared the sample project file with my project
file for obvious differences (such as pointing to the
wrong library path etc) but could not find anything
that could explain this behavior. I am sure this is
something silly and obvious, but at the moment I am
out of ideas.
Any idea what could do something like this?
BTW, of course I made sure that the preprocessor has
the WXUSINGDLL symbol defined. I also removed function
'DllMain' from $(WXWIN)\src\msw\main.cpp and
recompiled the wxWidgets DLLs.
Thanks,
Dave
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
More information about the wx-users
mailing list