Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 03-30-2015, 12:13 PM   #1
Solid State Member
 
Join Date: Jun 2012
Location: --------------
Posts: 19
Default help Problem with Dev C++ compiler

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
__________________

faslan is offline   Reply With Quote
Old 04-02-2015, 07:10 AM   #2
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,007
Default Re: help Problem with Dev C++ compiler

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?
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 04-02-2015, 02:59 PM   #3
Solid State Member
 
Join Date: Jun 2012
Location: --------------
Posts: 19
Default Re: help Problem with Dev C++ compiler

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
faslan is offline   Reply With Quote
Old 04-10-2015, 06:52 PM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,007
Default Re: help Problem with Dev C++ compiler

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 didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 04-19-2015, 03:03 PM   #5
In Runtime
 
Join Date: Feb 2013
Location: UK
Posts: 156
Default Re: help Problem with Dev C++ 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!
_michaelm is offline   Reply With Quote
Old 04-20-2015, 03:33 PM   #6
Fully Optimized
 
Draygoes's Avatar
 
Join Date: Nov 2014
Location: United States
Posts: 1,653
Default Re: help Problem with Dev C++ compiler

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/tutoria...uction/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.
__________________

__________________
Will have a youtube channel up soon. Link will be here if I remember.
Draygoes is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:16 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0