Raised This Month: $51 Target: $400
 12% 

Linker Warning (Solved)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jordan44053
Junior Member
Join Date: Aug 2005
Old 07-10-2006 , 17:41   Linker Warning (Solved)
Reply With Quote #1

Through the miracle of Google and the forum search, I have been able to make a working module. It compiles without error or warning, but the linker gives the following warning:

Code:
warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run correctly
At first glance it seems I should make it a resource only DLL (/NOENTRY), but when I do I instead get two errors:

Code:
LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup

C:\Documents and Settings\Jordan\My Documents\Visual Studio Projects\AMXX Module\Debug\strutil_amxx.dll : fatal error LNK1120: 1 unresolved externals
I have been able to figure everything out without posting up until now. The DLL produced with the warning works, but I'd like to be able to get rid of the warning, if possible.

I am using:
Windows XP Professional
MSVC++ 7(.1?)
Tell me if you need to know anything else.

Thank you in advance.
__________________

Last edited by Jordan44053; 07-10-2006 at 22:22. Reason: Solved
Jordan44053 is offline
BAILOPAN
Join Date: Jan 2004
Old 07-10-2006 , 21:47   Re: Linker Warning
Reply With Quote #2

It looks like you first tried to compile it using CLR and then tried to compile it as some sort of static executable.

All you need to do is set your paths and open the project file. Set the build configuration to "JITRelease" and compile.
__________________
egg
BAILOPAN is offline
Jordan44053
Junior Member
Join Date: Aug 2005
Old 07-10-2006 , 22:18   Re: Linker Warning
Reply With Quote #3

My module doesn't have a JITRelease setting. I'm not compiling the AMXX Core module, which does. I got it to work, and I did the following:

Copy the AMXX core and all its files to my module's directory.
Open the project and remove all the files from it.
Remove all the files that aren't related to my module (except the project files) from the folder.
Copy the project files from /msvc to the directory.
Add the module files into the project.
Set it to JITRelease (which was passed over from the original AMXX core project).
Edit the project properties to remove some library dependencies.

After that, it compiles without a warning.

Thanks.
__________________

Last edited by Jordan44053; 07-10-2006 at 22:23.
Jordan44053 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 03:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode