Help with getline(...) call in C++ program
Hi,
I'm trying to compile a C++ program on my Powerbook G4 running the latest Mac OS X. I can compile the code on another linux system (Ubuntu) but I can't compile on the Mac. It says:
config_reader.cpp: In function 'int read_config(char*, int ( )(char, char*), int)':
config_reader.cpp:78: error: 'getline' was not declared in this scope
make: * [config_reader.o] Error 1
I am not sure what to make of this, since the program compiles flawlessly on Ubunutu.
Is there some extra library that I have to add?
Any help would be greatly appreciated, I really want to use my Mac to develop this application!
I'm trying to compile a C++ program on my Powerbook G4 running the latest Mac OS X. I can compile the code on another linux system (Ubuntu) but I can't compile on the Mac. It says:
config_reader.cpp: In function 'int read_config(char*, int ( )(char, char*), int)':
config_reader.cpp:78: error: 'getline' was not declared in this scope
make: * [config_reader.o] Error 1
I am not sure what to make of this, since the program compiles flawlessly on Ubunutu.
Is there some extra library that I have to add?
Any help would be greatly appreciated, I really want to use my Mac to develop this application!
PowerBook G4, Mac OS X (10.4.7), 1.5 GB ram