|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Not a valid Win32 application?
I made a C program. It's simple, but I got an error when running it on Windows98
Ok, here is the source: #include <stdio.h> void main(void) { printf("Uploading virus...\a Complete!"); getchar(); } I compiled it on Linux with: cc -o virus.exe virus.c Is it because of the "-o" I added in there? I'm new to C and don't know much. Thanks for the help! |
|
#2
|
||||
|
||||
|
Linux object code and Windows object code are two completely different animals. Even though they both run on Intel processors (assuming you use Intel), the binary code is different. Unless you have a cross-compiler on Linux, you must use a Windows compiler to make a program that will run on Windows.
__________________
Jon Sagara "Me fail English? That's unpossible!" |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Not a valid Win32 application? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|