| View previous topic :: View next topic |
| Author |
Message |
Chaosis13 Master Cheater
Reputation: 0
Joined: 14 Aug 2007 Posts: 372
|
Posted: Fri Jul 04, 2008 4:22 pm Post subject: Compiler Errors |
|
|
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:
--------------------------------
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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Jul 04, 2008 4:39 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Jul 04, 2008 4:48 pm Post subject: |
|
|
| 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 |
|
 |
Chaosis13 Master Cheater
Reputation: 0
Joined: 14 Aug 2007 Posts: 372
|
Posted: Sat Jul 05, 2008 11:33 am Post subject: |
|
|
| kk, I just got back, I will try these.
|
|
| Back to top |
|
 |
|