From Clive Corner · 1996-04-09 01:50 · #75248 in R25C
I've just ploughed my way through Schildt's 'Teach yourself 'C'. I have Turbo C++ version 3 compiler. I downloaded 'The Best libray of 'C' ' an enormous freeware libray of C functions. The package consists of a header file, a library file, which I assume to be in machine code or assembler languge (perhaps if you've seen it you could enlighten me on this point). There are also several example progs in C source code. I placed the header file in the include directory and the library file in the lib directory. And thought here we go. I don't think so......The TLINK error undefined symbol in the example C source file came up for all the functions in this source file. The file compiled alright but would it link ....no it would not. I tried everything. What did I try let me recount the ways. I checked to see if the functions were in the header file, they were. I wondered if I could include the library file as a kind of .obj file in a project, I couldn't get this to work. I looked at other header files and tried copied some of the 'missing' syntax into the 'best library' header. On this point, why do functions in the compiler header file start with '_' that is an underline. I tried writing some simple programs myself using the given header. Still the same undefined symbol error. And yes the header file for this 'best library' was included. Is my Turbo C blind? can't it see the prototypes in the header file? If you can help I would much appreciate it. thanks Clive Corner --- * Origin: The Field BBS - 01706 868997 (v34) - 24 Hours a Day (2:250/121)