Anyone?![]()
This is a discussion on How to compile a lib? within the C++ Programming forums, part of the General Programming Boards category; Anyone?...
Anyone?![]()
Code:int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000 <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000 )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}
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.
here goes:
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.