help Problem with Dev C++ compiler

Faslan

Solid State Member
Messages
19
when develop C language Console app
output screen always show
e.g fail to execute
--------------------------------
Failed to execute "C:\Users\New User\Desktop\New folder (2)\1.exe":
Error 193: %1 is not a valid Win32 application.

Press any key to continue . . .

or
sometime show
Makefile.win [Build Error] [main.o] Error 1
and problem not execute

i try with downloaded code developed by professionals but still show error
 
What compiler are you using? (and how are you invoking the compiler?)

if this something that you're downloaded, or something that you've written yourself?
 
dev c++ verson 5.8.3 32 bit
use for learn C language
code without any error
(developed by professionals )
but still error
example i created a project 1 but this msg come when click "compile &run"
Failed to execute "C:\Users\New User\Desktop\New folder (2)\1.exe":
Error 193: %1 is not a valid Win32 application.

or sometimes this error happens
Makefile.win [Build Error] [main.o] Error 1
and problem not execute
my OS win7 32
 
what's the project that you're creating?

it seems like there may be some issue with your compiler/linker setup.

I'd suggest removing and re-installing the compiler.
 
I'd suggest starting off by building an example application (e.g. hello world) in your IDE/compiler and make sure you can get that to build and execute successfully first. Having understood that process, you'll be able to rule out your build tools as the source of your problem.

From this point, you may need to add extra libraries/include directives to your linker/compiler respectively to get your full application to build.

Good luck!
 
Similar problem, solved by Michaelm's solution. Start from scratch, and look for extra librarys online.

A simple google search gives me the following two resources for beginners...
The Dev-C++ Resource Site
Libriaries in Bloodshed Dev C++ - C++ Forum

Also, I again agree with Root You will want to reinstall the package, then visit the links above for some fun.

The final advice that I can give you is this. If you visit example code, and feel like a kid in a candy store, you are already on your way. Alter others code, but do not repost it. It will teach you a lot.
For that, the best source that I can give you is this: http://www.cplusplus.com/doc/tutorial/introduction/devcpp/

I wish you the best of luck.

EDIT: I love your location; -----------; I have never been there, is it nice? :) Note: I am having fun, no need to share location if you do not wish to. :)
 
Last edited:
Back
Top Bottom