Results 1 to 2 of 2

Thread: DLL Failure on Winblows

  1. #1
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default DLL Failure on Winblows

    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

    Qt Code:
    1. TEMPLATE += lib
    2. CONFIG += dll \
    3. debug \
    4. opengl
    5. TARGET = NeonCore
    6. HEADERS += Global.hpp
    7. SOURCE += Global.cpp
    8. VERSION = 0.0.1
    To copy to clipboard, switch view to plain text mode 

    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 ==========
    Last edited by jacek; 7th September 2008 at 16:05. Reason: changed [code] to [quote]
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: DLL Failure on Winblows

    It should be "SOURCES".

Similar Threads

  1. Memory allocation failure and crash in QVector
    By ashatilo in forum Qt Programming
    Replies: 16
    Last Post: 20th October 2007, 23:27
  2. Build Debug Libraries : Failure
    By oetzi in forum Installation and Deployment
    Replies: 4
    Last Post: 14th October 2007, 12:29
  3. Failure when building QT on Windows with MinGW
    By sharon in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd August 2007, 13:38
  4. "connect" failure
    By hgedek in forum Qt Programming
    Replies: 18
    Last Post: 11th August 2007, 16:27
  5. QWT assert failure
    By Andimat in forum Qwt
    Replies: 1
    Last Post: 21st June 2007, 14:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.