User forums > General (but related to Code::Blocks)

Linking Errors with 'Hello World' program using wxWidgets - HELP! :)

<< < (2/4) > >>

Rytz:
Thank you very much for the replies!  I will mess around with the config when I get home from work in a few hours.

Rytz:

--- Quote from: sethjackson on May 18, 2006, 03:27:34 am ---
--- Quote from: Rytz on May 18, 2006, 02:51:50 am ---
--- Quote from: sethjackson on May 18, 2006, 01:00:33 am ---Umm are you linking in the wxWidgets libs?

--- End quote ---

Thanks for the response.  I did put the lib directories for both Code::Blocks and wxWidgets.  Do I need to do add each lib file individually on the linker tab?

--- End quote ---

Yes something like wxmsw26. Look in path_to_wxWidgets\lib\gcc_dll or path_to_wxWidgets\lib\gcc_lib.

--- End quote ---

I tried looking for that file but didn't find it.  Or anything really similar.  I don't have a gcc_dll path either.  I'm guessing based on the responses so far that I need to rebuild wxWidgets?

Defender:
Yes, if you build wxWidgets correctly, there should be a gcc_dll path with a large DLL called wxmsw26(...).dll and a library called libwxmsw26(u).lib inside.

Good luck  :)

sethjackson:

--- Quote from: Defender on May 19, 2006, 10:17:50 am ---Yes, if you build wxWidgets correctly, there should be a gcc_dll path with a large DLL called wxmsw26(...).dll and a library called libwxmsw26(u).lib inside.

Good luck  :)

--- End quote ---

It really depends on if you build wx with SHARED=1 or not.... SHARED=1 builds a DLL, the default is SHARED=0 wich builds a static lib......

Defender:

--- Quote from: sethjackson on May 19, 2006, 01:40:52 pm ---
--- Quote from: Defender on May 19, 2006, 10:17:50 am ---Yes, if you build wxWidgets correctly, there should be a gcc_dll path with a large DLL called wxmsw26(...).dll and a library called libwxmsw26(u).lib inside.

Good luck  :)

--- End quote ---

It really depends on if you build wx with SHARED=1 or not.... SHARED=1 builds a DLL, the default is SHARED=0 wich builds a static lib......

--- End quote ---
I know, but I didn't want to make it so complicated for him  :lol:
Ok, Rytz: look for a gcc_lib and a gcc_dll directory, if you can find neither of them, you should build wxW first.  8)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version