I know that DJGPP does not permit SHARED OBJECTS, but you have a problem,
your MAKEFILE program permits the use of the -fPIC FLAG, you sould remove it,
because it creates a reference to _GLOBAL_OFFSET_TABLE_ witch is not suported by
your libc.a.
I believe that this error is due to the fact that you have imported some
libraries from LINUX or you tried to implement the use of SHARED OBJECTS in DOS.
I had problems when i was porting my Artificial Neuronal Network to DOS, i use
in LINUX shared objects, and i had problems, had to remove the flag "-shared",
but i forgot to remove the "-fPIC" flag.. you can imagine my problems...
I started to back-track the problem with "nm" and i found that the
"_GLOBAL_OFFSET_TABLE_" reference was not inlcuded in you libc.a, but in
my libc.so.6 in LINUX it exists!
Try to fix it!
My program work's perfectly in DOS, thank you ! :)
keep up the good work!
PS: i did not ask this in comp.os.msdos.djgpp because i found out the answer
and found a small bug that i think that is easy to repear...
Joao Miguel from Portugal