User forums > Help

Can't debug with CodeBlocks

<< < (4/4)

rickg22:
actually i didn't understand either. I thought the library formats depended on the compiler, not the extension. So if it's GCC, the .a / .lib file will have the same format, no matter the operating system... i suppose....

yop:
Yeap that's right, I'll quote from the link you provided:

--- Quote ---simply change the names of the MS libraries to lib*.a (e.g. rename ddraw.lib to libddraw.a, and then don't forget to add the library search path with the -L option.)
--- End quote ---
Having the lib*.a format just makes gcc "understand" -l[name of lib] inputs. Though I don't know who you were refering to by saying you don't understand, I was just saying that if you include the dx libs using ms compiler the libraries will be straight available to u and with minGW you' ll have to provide path etc.

grv575:
Oh, true.  I guess if you can build a cross-compiler under linux to generate windows binaries, the linker can easily be configured to just output windows libs (and then use the lib*.a convention for "portability").

yop:
Can't answer that for sure but I think no. The .a libs u use under windows have been built under windows.

grv575:
yeah but the naming convention is the same so -llibname works on both.  that's all I mean by "portability".

Navigation

[0] Message Index

[*] Previous page

Go to full version