Compiler Error on Solaris 10 x86

Help
Barry
2012-03-10
2013-03-12
  • Barry

    Barry - 2012-03-10

    Hello,

    I am using Solaris 10 8-11 x86.

    I am attempting to compile the source with the built in c++ compiler, however I keep getting errors.

    /usr/sfw/bin/c++ opentftpd.cpp -oopentftpd -lsocket -linsl -lpthread

    In file included from opentftpd.cpp:47:
    opentftpd.h:180: error: expected init-declarator bfore '<' token
    opentftpd.h:180: error: expected ',' or ';' before '<' token
    opentftpd.cpp:51: error: 'myMap' does not name a type
    opentftpd.cpp: In function 'int main(int, char**)':
    opentftpd.cpp:195: error: 'tftpCache' undelcared (first use this function)
    opentftpd.cpp:195: error: (Each undeclared identifier is reported only once for each function it appears in.)

    Has anyone else run into this error while trying to compile on Solaris?

    Thanks!
    Barry

     
  • Richa Collins

    Richa Collins - 2012-06-27

    typedef std::map<string, request*> myMap;
    typedef std::multimap<long, request*> myMultiMap;

    change map and multimap definitions to add the "std::" syntax.

     

Log in to post a comment.