• borland c - c++ linker error

    From Patrick McGuire@1:261/1000 to All on Wed Dec 6 19:33:46 2000
    haven't seen mutch traffic in here... well for all thoes ears, anyone know mutch about borland c having some problems linking my program...

    -Patrick


    ... Press <Ctrl-Alt-Del> now to access the pirate software.
    --- Blue Wave/DOS v2.30 [NR]
    * Origin: Nerve Center - Where the spine is misaligned! (1:261/1000)
  • From Udo Zaydowicz@2:238/2001 to Patrick McGuire on Thu Dec 7 11:16:44 2000
    Hej Patrick!

    Patrick McGuire -> All, 07.12.2000: "borland c - c++ linker error"

    haven't seen mutch traffic in here...

    Well, then let's make some ;-)


    well for all thoes
    ears, anyone know mutch about borland c having some
    problems linking my program...

    What problems?


    Farvel, Udo!

    --- FleetStreet 1.22+
    * Origin: Wat mutt dat mutt (2:238/2001)
  • From Patrick McGuire@1:261/1000 to Udo Zaydowicz on Thu Dec 7 22:55:00 2000
    Quoting Udo Zaydowicz to Patrick McGuire <=-

    Hej Patrick!
    Patrick McGuire -> All, 07.12.2000: "borland c - c++ linker error"
    haven't seen mutch traffic in here...
    Well, then let's make some ;-)
    well for all thoes
    ears, anyone know mutch about borland c having some
    problems linking my program...

    What problems?

    ok, i'm runnng wwiv bbs software, and it's modded by borland c, well all my code is good, i've also tried other code too, same 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

    i've seen some things about name mangling but every time i try to add
    extern "C" to the code it gives me code errors, because it does this
    with more than one set of code i'm starting to think there is a bc setup problem, but i can't find one.....

    -Patrick McGuire
    Sys0p Torture Chamber BBS (1:261/1010)


    ... RAM DISK is NOT an installation procedure!
    --- Blue Wave/DOS v2.30 [NR]
    * Origin: Nerve Center - Where the spine is misaligned! (1:261/1000)
  • From Udo Zaydowicz@2:238/2001 to Patrick McGuire on Sat Dec 9 12:54:58 2000
    Hej Patrick!

    Patrick McGuire -> Udo Zaydowicz, 08.12.2000: "borland c - c++ linker error"

    [...]
    What problems?

    ok, i'm runnng wwiv bbs software, and it's modded by borland
    c, well all my code is good, i've also tried other code
    too, same 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

    The only thing I could imagine is that you forgot to include a *.h containing all the symbol definitions.


    Farvel, Udo!

    --- FleetStreet 1.22+
    * Origin: Wat mutt dat mutt (2:238/2001)
  • From George White@2:257/609.6 to Patrick McGuire on Sun Dec 10 09:51:56 2000
    Hi Patrick,

    On 08-Dec-00, Patrick McGuire wrote to Udo Zaydowicz:

    well for all thoes ears, anyone know mutch about borland c
    having some problems linking my program...

    What problems?

    ok, i'm runnng wwiv bbs software, and it's modded by borland c,
    well all my code is good, i've also tried other code too, same
    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

    i've seen some things about name mangling but every time i try to add
    extern "C" to the code it gives me code errors, because it does this with more than one set of code i'm starting to think there is a bc setup 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)
  • From Patrick McGuire@1:261/1000 to George White on Wed Dec 13 22:58:08 2000
    Quoting George White to Patrick McGuire <=-

    Hi Patrick,

    On 08-Dec-00, Patrick McGuire wrote to Udo Zaydowicz:

    well for all thoes ears, anyone know mutch about borland c
    having some problems linking my program...

    What problems?

    ok, i'm runnng wwiv bbs software, and it's modded by borland c,
    well all my code is good, i've also tried other code too, same
    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

    this i gonna sound silly but I'm still suprised I figurd it out,
    all of my problems were based on the fact that my compiler and source
    code were placed in an area that had "bad sectors" do i removed all bad
    data, fixed the sectors, re-installed evverything, now it works :)
    ...never would of guessed to blame the hardware....


    -Patrick

    ... DOS never says "EXCELLENT command or filename"...
    --- Blue Wave/DOS v2.30 [NR]
    * Origin: Nerve Center - Where the spine is misaligned! (1:261/1000)