Subj : borland c - c++ linker error To : Patrick McGuire From : George White Date : Sun Dec 10 2000 09:51 am Hi Patrick, On 08-Dec-00, Patrick McGuire wrote to Udo Zaydowicz: PM>> well for all thoes ears, anyone know mutch about borland c PM>> having some problems linking my program... UZ>> What problems? PM> ok, i'm runnng wwiv bbs software, and it's modded by borland c, PM> well all my code is good, i've also tried other code too, same PM> problem. I compile good, but when i go to make, linker brings up ~>> Compiling BBS.C: ~>> Linking ..\PROGRAMS\BBS.EXE: ~>> Linker Error: Undefined symbol _UPCASE in module BBS.C ~>> Linker Error: Undefined symbol _GETCHD1 in module BBS.C ~>> Linker Error: Undefined symbol _KBHITB in module BBS.C ~>> Linker Error: Undefined symbol _TIMER in module BBS.C ~>> Linker Error: Undefined symbol _OUTS in module BBS.C ~>> Linker Error: Undefined symbol _GET_STRING in module BBS.C ~>> Linker Error: Undefined symbol _GETKEY in module BBS.C ~>> Linker Error: Undefined symbol _PRINTMENU in module BBS.C ~>> Linker Error: Undefined symbol _NL in module BBS.C ~>> Linker Error: Undefined symbol _CLRSCRB in module BBS.C ~>> Linker Error: Undefined symbol _OK_LOCAL in module BBS.C ~>> Linker Error: Undefined symbol _HOLDPHONE in module BBS.C ~>> Linker Error: Undefined symbol _RESET_FILES in module BBS.C ~>> Linker Error: Undefined symbol _INKEY in module BBS.C ~>> Linker Error: Undefined symbol _READ_QSCN in module BBS.C ~>> Linker Error: Undefined symbol _READ_USER in module BBS.C ~>> Linker Error: Undefined symbol _ATTEMPT_CALLOUT in module BBS.C ~>> Linker Error: Undefined symbol _RUN_EVENT in module BBS.C ~>> Linker Error: Undefined symbol _CHECK_EVENT in module BBS.C ~>> Linker Error: Undefined symbol _BEGINDAY in module BBS.C ~>> Linker Error: Undefined symbol _DATE in module BBS.C ~>> Linker Error: Undefined symbol _END_BBS in module BBS.C ~>> Linker Error: Undefined symbol _DATE_CHANGED in module BBS.C ~>> Linker Error: Undefined symbol _SET_NET_NUM in module BBS.C ~>> Linker Error: Undefined symbol _WRITE_INST in module BBS.C ~>> Linker Error: Too many error or warning messages in module BBS.C PM> i've seen some things about name mangling but every time i try to add PM> extern "C" to the code it gives me code errors, because it does this PM> with more than one set of code i'm starting to think there is a bc setup PM> problem, but i can't find one..... The problem you're showing is that you are calling routines with the names given above in the module BBS.C and the linker can't find them in any of the modules you're linking with BBS.C. You _are_ linking in other modules containing the ncessary routines? From the error message it looks to me as if you are compiling BBS.C and not including in the link the modules that include all the referenced routines as they are not standard library routines. So, my first suggestion is to link in the modules containing the code for the required functions. If yoe sre including the required modules, if they are not 'C' code you will have to change the declarations of all the functions to make them 'C' _or_ make BBS.C into BBS.CPP which will cause it to use the C++ name mangling for the function names. George --- Terminate 5.00/Pro * Origin: A country point under OS/2 (2:257/609.6) .