[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

g++ compilation...

Posted on 1999-12-02
2
Medium Priority
?
418 Views
Last Modified: 2009-07-29
A question from a C++ newbie.Here is what I have done...
OS: Unix (SunOS5.6)
register.h   //header
register.cpp //implementation
main.cpp     //main program

Compiled:
g++ -c main.cpp
got the main.o file
when try to execute the main.o file I get the error message:
main.o: Exec format error. Binary file not executable.

I have no clue what causes this at this point. Do you have any idea?
Thanks for your help...
0
Comment
Question by:Hocam
2 Comments
 
LVL 10

Accepted Solution

by:
rbr earned 150 total points
ID: 2286872
use
g++ main.cpp register.cpp -o main.exe
0
 
LVL 1

Author Comment

by:Hocam
ID: 2287196
Yes, thank you.
I have solved the problem, it was my mistake.

But you earn your points anyway...
0

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question