Remember me

Lost Password?

Register now!
Who's Online
46 user(s) are online (25 user(s) are browsing Forums)

Members: 1
Guests: 45

Caras, more...
Support us!
Recent OS4 Files
Report message:*

Re: library auto init code

Subject: Re: library auto init code
by xenic on 2019/4/11 16:35:00

If you are using the sample code provided in billyfish's original post, the test.c code is defective. The autoinit code will assign values to SampleBase and ISample. His test code then assigns NULL to those variables which makes it look like the autoinit isn't working.

I compiled the the library and test code with the current public SDK and it worked. If libsample_auto is in SDK:newlib/lib/ and sample.library is in LIBS: then the autoinit works when a valid test program is compiled with something like: gcc test.c -lsample_auto -o test

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project