User forums > Help
Linking Console Executable
like2program:
Ok I got it to build After creating a new project.
Thanks for your help.
like2program:
Ok it works.. kinda.
I need it to build into a .lib not .a
how might I go about doing this?
If it is possible for that matter
Belgabor:
.a are gcc's static libraries, .libS are usually used and created with/by msvc. As far as I know they are not interchangable.
Seronis:
In otherwords, since you're using gcc to compile the library you probably need the *.a file and NOT a *.lib file. Personally in my linker settings i always omit the file suffix completely and codeblocks handles it accurately. Just try using the *.a file and see if it works for the program that intends on using it.
thomas:
Although gcc natively works on .a files, you can (at least under MinGW) use Microsoft's .lib files with gcc (no problem at all).
However, the same is not true the other way around.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version