Visit Our UNIX and Linux User Community


How to build .exe from c


 
Thread Tools Search this Thread
Top Forums Programming How to build .exe from c
# 1  
Old 11-04-2010
How to build .exe from c

All,
I have never comipled C code before and would appricaite if anyone could tell me how to build a .exe from a C program.


Thanks in advance.
# 2  
Old 11-04-2010
If you have C compiler (cc or gcc) installed, try

Code:
$ gcc file.c

This will create the binary, a.out, which you can execute by
Code:
$ ./a.out

# 3  
Old 11-04-2010
Hi,
I do not have GCC; I am using CC and want to build .EXE not .O file.

Thanks,
Premjit
# 4  
Old 11-04-2010
Where are you planning to execute it ? Windows or *nix ? a.out is the executable. It is not an object file.
# 5  
Old 11-04-2010
I am using SunOS to complie it.
# 6  
Old 11-04-2010
SunOS doesn't have ".exe". SunOS isn't Windows.

The above instructions should work, using cc instead of gcc. If they don't, please be more specific about what you are doing!

Previous Thread | Next Thread
Test Your Knowledge in Computers #178
Difficulty: Medium
The Apple Computer Company was founded on April 1, 1978.
True or False?

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

(VS 2008) New build config looking files from other folder build config

Hi Team, My new build configuration always looking for the files from the build where i copied from. please help me to resolve this. I am using Visual studio 2008.It has Qt 4.8. plugins,qml,C++ development I created new debug_new build configuration with additional preprocessor from the... (1 Reply)
Discussion started by: SA_Palani
1 Replies

2. Shell Programming and Scripting

Build.xml invocation by Build Script

Hi I have a build.xml file and I can run it on Windows via cmd. Now I want to write a script to invoke the same. Is there a way to do this? (1 Reply)
Discussion started by: ankur328
1 Replies

3. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

4. Programming

exe

hello everyone, could somebody tell me where can i find some good exercises on signals,processes and threads? actually i need to find some solved exercises in system programming. tnx (4 Replies)
Discussion started by: micy
4 Replies

5. Programming

exe

Is it possible to extract c program,from its executable file(.exe)? i mean we dont have program but its exe file only which runs,can we retrieve the program? if yes how? if no why? (2 Replies)
Discussion started by: unknown9
2 Replies

6. Linux

How to run .exe

Hai, is there any way to run an .exe file in unix environment . i have read that WINE HQ supports this concept but its very inconsistent and upto the user risk . but i tried WINE but iam not able to configure it can any one help me in this matter Regards Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies

7. SuSE

does exe

does exe files works withe suse am new n linux system and were can i find msn 4 linux (2 Replies)
Discussion started by: abdulla
2 Replies

8. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies

9. Programming

about exe file

Hi, I am using dual operating system(windows/linux) in my system.Now the problem is i want to run my .exe(of c languege) before system ask for loading of operating system.Like my system ask for linux or dos.I want to run my .exe before this. Tell me how can i use this. (2 Replies)
Discussion started by: at_renai2001
2 Replies

10. Programming

*.exe Decompilier

Hello, How would you go about de-compiling a *.exe file which wasn't created in VB? Any suggestions? Thank you (2 Replies)
Discussion started by: TAT2ME74
2 Replies

Featured Tech Videos