Search found 395 matches

by mael15
Fri Oct 29, 2010 11:58 am
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

hi andre, i finally found the mistake, my preprocessor symbols where messed up. everything works not with only _DEBUG and WXUSINGDLL. i did not really understand preprocessor symbols before, so i just tried different things that i found on the internet without knowing what i was doing. i also built ...
by mael15
Thu Oct 28, 2010 4:05 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

it just convince me that this the origin of your problem
so how can i get the missing symbols to show up in the libs included in the vc_dll dir?!
by mael15
Thu Oct 28, 2010 3:54 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

i can compile the dll just fine when i use the lib dir vc_lib instead of vc_dll. but that does not help me, because i MUST link dynamically. otherwise i get a lot of "symbol wxXYZ already defined in XYZ.lib" errors when compiling my app. :?:
by mael15
Thu Oct 28, 2010 3:14 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

i checked all 22 libs and "wxFalse" is in none of them. does this mean that something went wrong with the wxWidgets compilation?
by mael15
Thu Oct 28, 2010 2:56 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

To be sure you recompile everything, you can force a clean by suppressing all .o files
oh, i see. yes, i used the clean command and it did not change the problem.

how can i find out in which wx lib the symbol wxFalse should be? [/quote]
by mael15
Thu Oct 28, 2010 2:43 pm
Forum: Compiler / Linking / IDE Related
Topic: cannot link dynamically to wxWidgets
Replies: 1
Views: 518

cannot link dynamically to wxWidgets

hi everyone, this is a thread continued from this post in the wxWidgets section: http://forums.wxwidgets.org/viewtopic.php?t=29235 my problem is, that i am not able to get a dynamically linked wxwidgets to work. i have to link dynamically, because my app and one dll both use wx libraries. i use vs20...
by mael15
Thu Oct 28, 2010 2:13 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

hi andre, i tried objdump and it gives me a 5mb txt file. i do not understand the contents of that file, but here are two examples: compiler error: testingdevicepropertylist.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""bool const wxFalse" ([email protected]@3_NB)". objdump of testingdeviceproper...
by mael15
Wed Oct 27, 2010 4:29 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

ok, here it comes for configLib.dll: first five lines: 1>dlgconfig.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: static struct wxEventTable const wxDialogBase::sm_eventTable" ([email protected]@@[email protected]@B)". 1>plotterconfigevent.obj : error LNK2001: Nicht aufg...
by mael15
Wed Oct 27, 2010 3:26 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

i thought, i.e. WXMAKINGDLL_CORE would not make sense in my dll? when i use all of these options, the errors change to other elements. could you perhaps try to change a wxwidgets sample from using static linking to dynamic? then i could see what steps are nescessary? i tried finding tutorials about ...
by mael15
Wed Oct 27, 2010 2:14 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

ok, i found these preprocessor symbols in the "core" project: WIN32 _USRDLL DLL_EXPORTS _DEBUG __WXMSW__ _UNICODE WXBUILDING WXUSINGDLL WXMAKINGDLL_CORE wxUSE_BASE=0 i delete some of them, remaining these for my dll: WIN32 _USRDLL DLL_EXPORTS _DEBUG __WXMSW__ _UNICODE wxUSE_BASE=0 the error stays th...
by mael15
Wed Oct 27, 2010 1:45 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

i am not sure what you mean by "option", these are the linker command lines: libConfig.dll: /OUT:"E:\libconfig\lib\libConfig.dll" /INCREMENTAL /NOLOGO /LIBPATH:"F:\wxWidgets_2_9/lib/vc_dll" /DLL "comctl32.lib" "rpcrt4.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi...
by mael15
Wed Oct 27, 2010 1:27 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

ok, i did compile wx using "debug dll" and then change the linking from /LIBPATH:"$(WXWIN)/lib/vc_ lib " to /LIBPATH:"$(WXWIN)/lib/vc_ dll ", right? after that, i get: error LNK2001: Unresolved external symbol ""bool const wxFalse" ([email protected]@3_NB)". ... followed by lots of similar lines. sorry for ...
by mael15
Wed Oct 27, 2010 1:00 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

thanx, guys!
i build wx with this guide:
http://wiki.wxwidgets.org/Microsoft_Vis ... 2B.2B_2010

since there is no makefile, would it be enough to open each of the 22 build projects and add a preprocessor symbol SHARED=1?

i would prefer using shared linking.
by mael15
Wed Oct 27, 2010 12:16 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

hi tan,

yes, configLib.dll is my own library.
this dynamic/static linking with wxlibs is new to me, do you some resource that explains to me what to do?

thanx!
by mael15
Wed Oct 27, 2010 11:29 am
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 6172

wxString already defined in dll

hi everybody! i am about to despair over this error: 1>wxbase29ud.lib(object.obj) : error LNK2005: "public: __thiscall wxFormatString::wxFormatString(wchar_t const *)" ([email protected]@[email protected][email protected]) ist bereits in libConfig.lib(libConfig.dll) definiert. 1>wxbase29ud.lib(object.obj) : error LNK2005:...