ld: Unsatisfied symbol "main" in file <no file> - HP UX

This is a discussion on ld: Unsatisfied symbol "main" in file <no file> - HP UX ; Dear Friends While compiling and linking , with the command /opt/aCC/bin/aCC -o SOAPServer *.cpp -I/opt/systinet/server_cpp65/ include -I../../.. +DD64 -lpthread -mt /opt/systinet/server_cpp65/lib/ libwasp.sl /opt/systinet/server_cpp65/lib/libwasp_stl.sl I get the error message as "ld: Unsatisfied symbol "main" in file file> 1 errors. " But ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: ld: Unsatisfied symbol "main" in file <no file>

  1. ld: Unsatisfied symbol "main" in file <no file>

    Dear Friends

    While compiling and linking , with the command
    /opt/aCC/bin/aCC -o SOAPServer *.cpp -I/opt/systinet/server_cpp65/
    include -I../../.. +DD64 -lpthread -mt /opt/systinet/server_cpp65/lib/
    libwasp.sl /opt/systinet/server_cpp65/lib/libwasp_stl.sl

    I get the error message as "ld: Unsatisfied symbol "main" in file file>
    1 errors.
    "
    But SOAPServer binary gets created , when I execute the binary
    $ ./SOAPServer
    /usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'main' in load module
    '/usr/lib/pa20_64/libc.2'.
    Killed

    Im getting above error
    Any idea How it can be resolved

    Thanks
    Amit


  2. Re: ld: Unsatisfied symbol "main" in file <no file>

    Amit_Basnak wrote:
    > While compiling and linking, with the command
    > aCC -o SOAPServer *.cpp +DD64 -lpthread -mt ...
    > I get the error message as "ld: Unsatisfied symbol "main"
    > Any idea How it can be resolved?


    A C++ or C application must have a main function to tell the runtime
    where to start. Did you forget to have one??


+ Reply to Thread