This is a discussion on How to compile a lib? within the C++ Programming forums, part of the General Programming Boards category; Anyone?...
24bbs.cppCode:if( numeric_limits< byte >::digits != bits_per_byte ) error( "program requires bits_per_byte-bit bytes" );
I looked at a lib from my compiler's directory, aren't these already compiled
> gcc2_compiled. ___gnu_compiled_c _DllMainCRTStartup@12 _DllMain@12 ___do_global_dtors
The rest was scambled junk.
The world is waiting. I must leave you now.
err... do you mean you want to make a class (templated, etc) to become a library so you can use the angle brackets ('<' and '>') in the includes rather than using quotes?
this is what you would do with MSVC++ if you have it.
I am not familiar with the others.
you go to "&New..." dialog under the "&File" menu and go to the "Projects" tab.
then you select "Win32 Static Library" and create a project name and directory.
if you have MSDEV <= 4.0, then you choose "Static Library".
now add the files into the project by selecting Project, Add to Project, and then files.
for MSC++ <= 4, it's just Insert, Files into Project
and compile and build.
now set the directories in MSVC++ to the directory of your created library and there you go.
* I might be missing some steps so stay alert of errprs when you create the library.
Last edited by toaster; 08-06-2002 at 06:39 PM.
think only with code.
write only with source.