PDA

View Full Version : new to programming in *nix, where are libraries?



band-aid
January 6th, 2007, 06:13 AM
I am by no means a proficient programmer but I am trying to learn. For the past few months I have been working in dev C++ in windows and I have that pretty well down but now that I am trying to get started in linux i'm in a bit over my head. I have the G++ compiler and have been trying out coding in nano, vim, and gedit but I cannot get anything to compile because I do not have any of the libraries that I am accustomed to using. For instance

#include <IOSTREAM>

int main(){
cout << "Hello World!";
}
return 0;

returns an error upon compiling because I don't think I have iostream. With dev c++ there were a ton of libraries that came with it and were stored in its directory. Where do I get libraries and where are they stored for use with the G++ compiler. If you have any recommendations of other compliers or development environments please feel free to make them. Thanks for the help

Band-aid

cabalas
January 6th, 2007, 06:24 AM
C++ is a case sensitive language, try to compile it with iostream not capitalized and see how you go.

quartzy
January 6th, 2007, 06:28 AM
You have the build-essential package I assume?

If not do


sudo apt-get install build-essential

Or use the gui apt installer :p

band-aid
January 6th, 2007, 06:50 AM
yea... that build-essential thing was what I was missing. Thanks for the help.

quartzy
January 6th, 2007, 07:01 AM
yea... that build-essential thing was what I was missing. Thanks for the help.

np :)