Kirix Support Forums

compilation problems

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

compilation problems

Postby vexator on Sat Feb 04, 2006 7:19 am

i could compile wxaui itself just fine, but when i try to compile the sample, i get a lot of unresolved externals..

Code: Select all
------ Rebuild All started: Project: wxauitest, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'wxauitest', configuration 'Release|Win32'.
Compiling...
wxauitest.cpp
Compiling resources...
Linking...
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _time already defined in LIBCMT.lib(time.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _atoi already defined in LIBCMT.lib(atox.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
.\Release/wxauitest.exe : fatal error LNK1169: one or more multiply defined symbols found

Build log was saved at "file://d:\Projekte\wxaui-0.9.1\sample\Release\BuildLog.htm"
wxauitest - 6 error(s), 1 warning(s)


---------------------- Done ----------------------

    Rebuild All: 0 succeeded, 1 failed, 0 skipped


what am i doing wrong? i've setup all the include and lib paths :(
vexator
Registered User
 
Posts: 17
Joined: Sat Feb 04, 2006 7:18 am

Postby Joel on Sat Feb 04, 2006 9:10 am

in your link command add /NODEFAULTLIB:MSVCRT.lib
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++

I want a legal copy of VS Professional! :P
Joel
Registered User
 
Posts: 37
Joined: Mon Jan 09, 2006 1:32 pm
Location: Singapore

Postby vexator on Sat Feb 04, 2006 11:34 am

i wish it would have been so easy :) the wx base lib needs it. but i found my problem - i built wx itself as multithreaded, but wxaui is initially set to multithreaded dll. changed it and it worked :D

great lib btw, i'm impressed :)
vexator
Registered User
 
Posts: 17
Joined: Sat Feb 04, 2006 7:18 am

Postby Joel on Sun Feb 05, 2006 6:57 am

then you'd need to know which os the user is using, no?

Joel
Joel's Place
Project Administrator for the UPX GUI and developer for wxDev-C++

I want a legal copy of VS Professional! :P
Joel
Registered User
 
Posts: 37
Joined: Mon Jan 09, 2006 1:32 pm
Location: Singapore

Return to wxAUI Questions, Thoughts & Feedback