Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
54 user(s) are online (44 user(s) are browsing Forums)

Members: 0
Guests: 54

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: library auto init code

Subject: Re: library auto init code
by salass00 on 2016/12/23 14:21:45

@billyfish

You're not supposed to link the files to your library. They will do nothing for you there.

Instead you compile them into a static library:

gcc -O2 -Wall -c -o autoinit_sample_base.o
gcc -O2 -Wall -c -o autoinit_sample_main.o
ar -crv -o libsample_auto.a autoinit_sample_base.o autoinit_sample_main.o

If you copy this file to SDK:locale/newlib/lib you can then link it to your program with "-lsample_auto".
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project