User forums > Using Code::Blocks

How to link with Dynamic Libraries

<< < (2/2)

cacb:

--- Quote from: cacb on November 05, 2009, 08:27:01 pm ---The problem is doing the same on Linux. I am still in the dark.

--- End quote ---

Correction ... Now it works!

Just to be sure, I copied in your #defines. But more important was that I seemed to have a mixup of source files in the shared object  :shock:

cacb:

--- Quote from: cacb on November 05, 2009, 08:39:30 pm ---Correction ... Now it works!

--- End quote ---

I have made a User Template of the Dynamic Library project
http://arnholm.org/wx/Dynamic_Library_(W32-UX).zip

On windows, this should be extracted under C:\Documents and Settings\<user>\Application Data\codeblocks\UserTemplates

The following is assumed
Windows compiler: VC2008 (either full or Express)
Linux compiler: GCC

For Windows, there are 2 build targets: W32_Debug and W32_Release
For Linux, there are 2 build targets: UX_Debug and UX_Release

On Windows __WXMSW__ must be defined for the calling project

Thanks to Jens who put me on the right track  :D

Navigation

[0] Message Index

[*] Previous page

Go to full version