Page 1 of 1

Static linkage using Eclipse

Posted: Tue Aug 30, 2011 1:05 pm
by soMan
Hi all! I'm searching for solution about the building program (just simple hello world with one empty frame) in Eclipse using static linkage. If a specify a path to libraries as *\gcc_dll the application will be succesfully build and work with some *.dll dependence-libraries in application folder. But if I specify a path to libraries as *\gcc_lib I'm getting many errors like "undefined reference...".
Some info:
OS: Win7 Pro SP1
IDE: Eclipse 3.7
Compiler: MinGW g++
wxWidgets version: 2.9.2
wxWidgets was built in 4 configs: dynamic and static libraries with release and debug versions. Non-monolithic and unicode supported. Also you can get Eclipse Project Settings (as screenshots archive) from here.
build.cfg contents from lib\gcc_lib\mswud you can get here.
See building log at here.

Re: Static linkage using Eclipse

Posted: Fri Sep 09, 2011 10:25 am
by briceandre
I suppose you configured Eclipse to define some preprocessor values (like __WXDEBUG__, __WXMSW__, etc.). If it works for dynamic linkage, you probably defined something like WXUSINGDLL. If yes, you should try to remove it and rebuild everything.