Sign in to follow this  

Unfixible error in dev-cpp

This topic is 4198 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

when I compile pretty much ANY code I get an error that says: cannot find entry symbol WinMainCRTStartup;defaulting to 004010000 I not so sure if that's EXCACTLY right but I will edit it if it is wrong. [Edited by - Acid rain on June 17, 2006 2:26:25 PM]

Share this post


Link to post
Share on other sites
Actually, the library I use doesn't matter and the code does'nt matter. The compiler is dev_cpp. But for some reason when ever I go to project options in dev-cpp and DO NOTHING and click 'ok' and compile the code , I get that error.

Share this post


Link to post
Share on other sites
Actually I asked to separate questions. see:



"Hey, I can't find the Alu.h file ANYWHERE. Any ideas on where it could be?"



was one and the other was:



"when I compile pretty much ANY code I get an error that says:
Cannot find win_startup@ defaulting to 0000010100100;
I not so sure if that's EXCACTLY right but I will edit it if it is wrong."



Share this post


Link to post
Share on other sites
Quote:
Original post by Acid rain
Actually I asked to separate questions. see:

"Hey, I can't find the Alu.h file ANYWHERE. Any ideas on where it could be?"


Which is why I asked you what library you were using. I can't even begin to guess what it is supposed to be, where you might want to look, simply from the name 'Alu.h'. You *did* ask your question in the "Alternative Libraries" forum, so the library you think you're using is very relevant.


Quote:
"when I compile pretty much ANY code I get an error that says:
Cannot find win_startup@ defaulting to 0000010100100;
I not so sure if that's EXCACTLY right but I will edit it if it is wrong."


Which is why I asked you what compiler you're using. It looks like you botched the install. Or your project file is corrupted. I don't know.


If you don't give us any useful information, don't expect us to go out of our way to help you. There's only so much we can do.

Share this post


Link to post
Share on other sites
WinMainCRTStartup is one of the possible entry points for a Windows executable -- the function that gets called at startup and then later calls your main() or WinMain() function. The linker didn't find it, so it tried a standard address instead.

The error is probably due to you not linking the appropriate libraries (e.g. the C runtime library).

Share this post


Link to post
Share on other sites
That function is in crt1.o, as well as crt2.o, one of which should be linked automatically by the compiler, unless you somehow instructed it not to. I don't use Dev-CPP (though I do use gcc), so I don't know what the options look like.

Share this post


Link to post
Share on other sites
ok, I linked crt1.o to the compiler and the error is gone. But now I'm getting a bunch of linker errors that say:

"Undefined reference to" etc.

how do I fix this?

Share this post


Link to post
Share on other sites
You know, the linker does spit out those big error messages just to waste your clock cycles. It puts out that information to help you diagnose what the problem is. In other words, you have not posted enough information to allow us to figure out what you are doing wrong.

Share this post


Link to post
Share on other sites
O.k. This is all the Information I can Give you. Whenever I write a program with dev-cpp (library doesn't matter) and compile it with no errors it runs perfectly. After the app is compiled I can go back into dev-cpp and edit the code. But when I click on the "Project options" button and click "ok" in the project options window (in other words, open project options and DO NOTHING TO THE PROJECT) and then I comile the code once more, I get an error that says:

[error]cannot find entry symbol WinMainCRTStartup;defaulting to 004010000

and following that error are hundreds of linker errors that say:

[Linker error]undefined reference to:

(after the colon is all of my data types and functions. That is all the information I have. Nothing more to say.Except for When I link crt1.o to the project I dont get the "winmainCRTStartup" error but I still get all the linker errors.

Share this post


Link to post
Share on other sites
Well, there is nothing more we can do for you. Report the bug to their development team. Try reinstalling. Switch to another IDE.

Share this post


Link to post
Share on other sites
I third the suggestion to reinstall devc++. It will probably solve your problem in less time then anyone of us could try to brainstorm exactly what went wrong.

Barring that, have you tried to google your error message and see if anyone else has had this problem?

Share this post


Link to post
Share on other sites
If reinstalling doesn't help, you can try this:

- Generate a makefile (and make sure it works by running make on the command line in the same directory - might have to mess with PATH variable to get it to recognize).

- Back up this makefile somewhere

- Do whatever you do to break it (open project options window and click ok)

- Generate makefile again

- Verify that it breaks this time when you run make

- Compare the two makefiles and report back with the diff :-)

(or... just skip the steps where you verify it works, and if it really does get generated differently, then tell us what the diffs are, and we will probably be able to tell you what's going wrong).

Share this post


Link to post
Share on other sites
Quote:
Original post by Fruny
WinMainCRTStartup is one of the possible entry points for a Windows executable -- the function that gets called at startup and then later calls your main() or WinMain() function. The linker didn't find it, so it tried a standard address instead.

The error is probably due to you not linking the appropriate libraries (e.g. the C runtime library).


Agreed. That was the first thing I thought of as well as the possibility of not including the appropriate headers in the source code.

Share this post


Link to post
Share on other sites

This topic is 4198 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this