Search Results

Search: Posts Made By: Corona688
Forum: Linux 07-13-2011
2,101
Posted By Corona688
This is correct, it compiled main.cpp file into...
This is correct, it compiled main.cpp file into an object file, main.o, then linked it into an executable file, 'hello'.

It didn't print "hello world" because you didn't actually run ./hello
Forum: Linux 07-13-2011
2,101
Posted By Corona688
So don't give it -cpp.
So don't give it -cpp.
Forum: Linux 07-13-2011
2,101
Posted By Corona688
gcc will happily compile c++ objects but can't...
gcc will happily compile c++ objects but can't tell the difference between C .o files and c++ .o files. So when you try and link a c++ program with gcc, it won't link in the C++ libraries and things...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy