- Hello!
I have a problem with compiling my C code. When I link it with any library (made by me - created with ar rcs x.c d.c) it is not functional. But If I pack all the code into main.c, all is OK.
format: coff-go32
I use GRUB
problem with C
Re:problem with C
making methods "static" may cause that
do this:
also dont forget to include a prototype in main.c
do this:
instead of:int method ( int a ) { ... }
in the library,static int method ( int a ) { ... }
also dont forget to include a prototype in main.c
Re:problem with C
Erm... you're putting C source files into a linker archive?
(Sitting back to wait whether you see your error yourself... )
(Sitting back to wait whether you see your error yourself... )
Every good solution is obvious once you've found it.
Re:problem with C
Without smiley, I have to ask: Does that mean you found the error, or are you sulking?
Every good solution is obvious once you've found it.