Re: "main (Not referenced yet! Probably due to -u option)" ... error message

From: Dennis Handly (dhandly_at_convex.hp.com)
Date: 06/28/05

  • Next message: Dennis Handly: "Re: Why I could not catch the signals on HP_UX?"
    Date: 28 Jun 2005 03:17:47 -0600
    
    

    : While compiling my C program, I get the following error message:
    : "main (Not referenced yet! Probably due to -u option)"
    : any inputs or pointers as to how to resolve this will be helpful....

    As a follow up to what Paul said, you are attempting to link a proggram
    without a main. If you are only compiling, you need to add -c.
    If creating a shared lib, you need to add a -b.

    If you are just trying to use -V, you must supply a source file.


  • Next message: Dennis Handly: "Re: Why I could not catch the signals on HP_UX?"

    Relevant Pages

    • Re: Get Error
      ... It is unfortunate that the error message is not very ... Modell that the Option "Evaluate parameter to reduce ... COMPILING Simulink_Test.c ...
      (comp.soft-sys.matlab)
    • Re: Multiple INCLUDE Vs multiple USE
      ... Problems without explicit error meaasges and explicit code producing the ... error message tend to do no good as the error will most likely be elsewhere. ... multiple times is - just like compiling any other program unit multiple ...
      (comp.lang.fortran)
    • Running Out Of Dynamic/Static Space?
      ... seeing problems between Compiling and Emulating/Debugging ... I went to make an EXE and got an error message "Out of Dynamic Memory" (or ... However, in the IDE, if I run the program once it's fine, but if I try to ... FWIW I believe that when the program exits itunloads all forms, ...
      (comp.lang.basic.visual.misc)
    • "main (Not referenced yet! Probably due to -u option)" ... error message
      ... While compiling my C program, I get the following error message: ... any inputs or pointers as to how to resolve this will be helpful.... ... Regards, ...
      (comp.sys.hp.hpux)
    • Re: problem facing in compiling PIC16F87 device .
      ... > The error message is given below ... > Halting build on first failure as requested. ... Are you compiling, or are you assembling the program? ... You also need to set the target chip type in MPLAB by ...
      (comp.arch.embedded)