Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
stream operators and gcc
Name: Joseph Date: May 19, 2003 at 13:47:11 Pacific OS: Solaris CPU/Ram: PIII 450, 256 mb
Comment:
Hi,
I am getting a ton of errors when i try to compile a c++ file using gcc. I am using this in my main.cpp
#include #include #include "top20.h"
using namespace std; using std::string;
#define LISTFILE "C:\\IT\\Top User Project\\list.txt"
void main () {
ifstream inFile;
and the errors are coming for ifstream. It said that it is an undefined reference.
Summary: ---------------------- Ok I am really bad with linux and compiling my code - ie using make and gcc. This is for a project. I have to have a driver.c file for a program in c, a support.s file in assemb...
Summary: do gcc prog.c -lm the math libary is called libm.so so that libary ust be linked. if you wanted a libary called testing and its libary was called libtest.so the the gcc flag -ltest would be use. ...
Summary: Well, first Visual C++ is simply Microsoft's C++ compiler. It makes it a lot easier to develop Windows applications because it uses MFC and has built in resource editors. Underneath the pretty pictur...