Solved

compilation of programs

Posted on 2002-04-24
1
216 Views
Last Modified: 2010-04-22
I have just installed mandrake and i want to compile my c or c++ codes.  I want to view my output or produce an executable file like how Visual C++ does or Borland?

When i use gcc [filename] -o [filename.o]

is this correct?  How do i produce [filename.exe]
0
Comment
Question by:ogom
1 Comment
 
LVL 4

Accepted Solution

by:
ct.smith earned 50 total points
ID: 6967094
A few things:

1 - Typically executables don't have an extension, Windows is pretty much the only plartform where it is expected.  So, you want your program output to be "filename", not "filename.exe"

2 - The .o extension is usually only used for the intermediate object files, but this is done with the "-c" flag on gcc.

3 - The -o option sepcifies the neme of the output executable, so you can use "gcc filename.c -o filename" as your command.  Without the -o option, you will get an executable named "a.out".

4 - If you want a full IDE like Visual Studio or Borland Builder, you may want to check out KDevelop which comes Mandrake.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
File system unmounted 3 155
benchmark write speed to disk on linux 2 66
RHEL 7 , I have tftp running as a process how can I run it as a service 2 77
Cron jobs 12 118
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now