User forums > Using Code::Blocks

bool in static libs?

<< < (3/3)

Rassilon:

--- Quote from: TDragon on March 24, 2006, 10:56:23 pm ---It's not Code::Blocks' fault, nor the toolkit's fault, just your own inexperience in doing things like this. Basically, if you want to use external (i.e. library) C functions and variables in your C++ code, you must (as with any library) declare the functions and variables for the C++ code, and you must surround the declarations with extern "C" { ... }. Since the majority of C libraries have a header that you include to use the library, it's simplest to simply surround the #include directive with the extern "C" { } construct.

--- End quote ---

I misunderstood what you ment by extern...That method I didnt try so that would probably have fixed it....

I come from a long line of Visual Studio 4,5 and 6 Usage...Before that it was the ole BC 3.1...I know that Visual is rather lax when it comes to coding specifications...You could slap just about anything together and call it a static library...

Navigation

[0] Message Index

[*] Previous page

Go to full version