User forums > Using Code::Blocks
Howto - Cross Compiling in Linux using MingW32
milope:
->MortenMacFly
The build log was older than my edit : there are no problems about it, now.
--- Quote from: MortenMacFly on February 04, 2010, 08:21:44 pm ---You'll most likely need to create the static lib from the sources, sorry.
--- End quote ---
I cant compile it statically into my program ?! Strange...
MortenMacFly:
--- Quote from: milope on February 05, 2010, 10:48:52 am ---I cant compile it statically into my program ?! Strange...
--- End quote ---
You can, but most libraries need a different set of parameters if compiled statically versus dynamically. Take wxWidgets: For a DLL you need to define WXUSINGDLL and alike. I don't know your library, but most likely there is a difference between the pure static and the DLL version. For the DLL you'll need to declare exported function differently for example. It may work, but I personally would do it "right".
milope:
--- Quote from: MortenMacFly on February 05, 2010, 11:18:51 am ---
--- Quote from: milope on February 05, 2010, 10:48:52 am ---I cant compile it statically into my program ?! Strange...
--- End quote ---
You can, but most libraries need a different set of parameters if compiled statically versus dynamically. Take wxWidgets: For a DLL you need to define WXUSINGDLL and alike. I don't know your library, but most likely there is a difference between the pure static and the DLL version. For the DLL you'll need to declare exported function differently for example. It may work, but I personally would do it "right".
--- End quote ---
I agree, but I need to try it...
Can you explain me how can I compile my program to having this librarie (libxml2) inside my program ?
MortenMacFly:
--- Quote from: milope on February 05, 2010, 12:10:46 pm ---Can you explain me how can I compile my program to having this librarie (libxml2) inside my program ?
--- End quote ---
No, I don't use this library. I would need to consult the documentation which you can do, too. ;-)
milope:
--- Quote from: MortenMacFly on February 05, 2010, 12:14:02 pm ---
--- Quote from: milope on February 05, 2010, 12:10:46 pm ---Can you explain me how can I compile my program to having this librarie (libxml2) inside my program ?
--- End quote ---
No, I don't use this library. I would need to consult the documentation which you can do, too. ;-)
--- End quote ---
I alredy done this, but without success, that's why I come here :)
I hope mingw can compile staticly (monoliticly) something if I give it the path of sources & headers of a lib...
The question is to know how can I said that to C::B. :s
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version