Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Compiler Errors

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Chaosis13
Master Cheater
Reputation: 0

Joined: 14 Aug 2007
Posts: 372

PostPosted: Fri Jul 04, 2008 4:22 pm    Post subject: Compiler Errors Reply with quote

I cannot get VC++ 2008 or 2005 to compile any DLL correctly (even empty). I know my code it perfect, any ideas what it wrong?

It might have something to do with these errors:

Code:
LINK : fatal error LNK1561: entry point must be defined


Code:
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?


Or missing this file:

Code:
MSVCRTD.lib


--------------------------------

I am going to be away from a computer for the rest of the nigh/morning most likely, so could you just shoot me some ideas? And could someone upload a blank DLL vc++ project folder, just to see? I really cant figure this out, spent all day today trying stuff.

Ty in advance. If you do help, I will +rep you! (Maybe 2x b/c I hate vc++)
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Jul 04, 2008 4:39 pm    Post subject: Reply with quote

For the end of file found I suggest going into stdafax.h and going to the very last line of it and hitting enter. If the right entry point isn't defined make sure that you have the DllMain function in there (that's the entry point for dynamic-link-libraries). If you still get the error make sure the SUBSYSTEM is set to /SUBSYSTEM:WINDOWS. If not change it.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jul 04, 2008 4:48 pm    Post subject: Reply with quote

Code:
LINK : fatal error LNK1561: entry point must be defined


Either your entry point is not named the standard 'DllMain' or you are attempting to use an invalid compiler setting or have rewritten the entry to be something else that is not found. Ensure you have 'DllMain' as your entry point, or you can attempt to fix the issue by adding the following to the top of the code:

Code:
#pragma comment( lib, "/ENTRY:DllMain" )




Code:
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?


You have precompiled headers turned on but are not using stdafx.h/.cpp, either create the files and add them to the project, or turn off precompiled headers.



Code:
Missing MSVCRTD.lib


Either the file is not located correctly due to bad path settings in your IDE (If you are using the express edition, ensure you have correctly installed the platform SDK and have put the proper paths in the IDE environment. If you are still having this issue, there is probably an issue with the compiler settings.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Chaosis13
Master Cheater
Reputation: 0

Joined: 14 Aug 2007
Posts: 372

PostPosted: Sat Jul 05, 2008 11:33 am    Post subject: Reply with quote

kk, I just got back, I will try these.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites