Linux and g++
I am new to a linux environment, and haven''t ever used g++. When I compile using g++ file.cpp i get a single file named a.out*. Is that my obj code (looks like it in vi)? How do I link and run that? If I try to run that i get a segmentation error.
|============================|| Things Smell VERY different|| to a midget in an elevator||============================|
That''s what gave me the segmentation error!
|============================|| Things Smell VERY different|| to a midget in an elevator||============================|
July 28, 2000 08:13 AM
a.out is the final executable. Adding the -o flag, like g++ test.cpp -o test, will let you set what it is named. I hate to say it but the segfault is a problem in your code.
I''m not the same anonymous poster. I really should register some time...
I''m not the same anonymous poster. I really should register some time...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement