Find the answer to your Linux question:
Results 1 to 3 of 3
Hi there, I am compiling checkIn.cpp using g++ and it's giving following error. Pls help.. checkin.cpp:5:18: error: stdlib: No such file or directory checkin.cpp: In function 'int main()': checkin.cpp:10: error: ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    1

    compiling checkIn.cpp

    Hi there,
    I am compiling checkIn.cpp using g++ and it's giving following error. Pls help..

    checkin.cpp:5:18: error: stdlib: No such file or directory
    checkin.cpp: In function 'int main()':
    checkin.cpp:10: error: 'queue' was not declared in this scope
    checkin.cpp:10: error: 'string' was not declared in this scope
    checkin.cpp:10: error: 'q' was not declared in this scope
    checkin.cpp:14: error: 'ifstream' was not declared in this scope
    checkin.cpp:14: error: expected `;' before 'fin'
    checkin.cpp:16: error: 'fin' was not declared in this scope
    checkin.cpp:19: error: 'cout' was not declared in this scope
    checkin.cpp:19: error: 'endl' was not declared in this scope
    checkin.cpp:41: error: 'cout' was not declared in this scope
    checkin.cpp:46: error: 'cout' was not declared in this scope
    checkin.cpp:51: error: 'cout' was not declared in this scope
    checkin.cpp:58: error: 'cout' was not declared in this scope
    checkin.cpp:63: error: 'cout' was not declared in this scope
    checkin.cpp:66: error: 'endl' was not declared in this scope
    checkin.cpp:72: error: 'endl' was not declared in this scope
    checkin.cpp:78: error: 'endl' was not declared in this scope

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i don't know what this file is, but you don't have everything you need to compile from source installed, what distro and version are you using?

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Please show the source for checkin.cpp and the command line you were using to compile it.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...