PDA

View Full Version : DLL Failure on Winblows



ComaWhite
7th September 2008, 08:48
I''ve googled for an hour or so even looked in my Qt4 book. And neither shows how to create a dll. I have this pro file



TEMPLATE += lib
CONFIG += dll \
debug \
opengl
TARGET = NeonCore
HEADERS += Global.hpp
SOURCE += Global.cpp
VERSION = 0.0.1


But that is all good and gravy. But I get this compile error.



1>------ Build started: Project: NeonCore, Configuration: Debug Win32 ------
1>Performing Makefile project actions
1>Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
1>Copyright (C) Microsoft Corporation. All rights reserved.
1> "c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe" -f Makefile.Debug
1>Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
1>Copyright (C) Microsoft Corporation. All rights reserved.
1> link /LIBPATH:"c:\Qt\4.4.1\\lib" /NOLOGO /DEBUG /DLL /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\NeonCore.exe @C:\Users\COMAWH~1\AppData\Local\Temp\nm63D9.tmp
1>LINK : warning LNK4001: no object files specified; libraries used
1>LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
1>LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
1>NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\link.EXE"' : return code '0x460'
1>Stop.
1>debug\NeonCore.exe : fatal error LNK1120: 1 unresolved externals
1>NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build Time 0:00
1>Build log was saved at "file://c:\Users\ComaWhite\Documents\Visual Studio 2008\Projects\NeonCore\Debug\BuildLog.htm"
1>NeonCore - 5 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

jacek
7th September 2008, 17:07
It should be "SOURCES".