Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » SDL sample needs *.dll
Re: SDL sample needs *.dll [message #14908 is a reply to message #14904] Wed, 19 March 2008 14:25 Go to previous messageGo to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
My package configuration looks like this:

index.php?t=getfile&id=1086&private=0

SDL source path is at the same level as "uppsrc" assembly (that's why I used "../..").
Additionally you have to add the following at the end of main.cpp:
#if defined(PLATFORM_WIN32) && defined(COMPILER_GCC)
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow){return main(0,NULL);}
#endif

See topic http://www.ultimatepp.org/forum/index.php?t=msg&th=1552& amp; amp;start=0&

This patch should already have been applied to source repo.

And of course, you don't have to link in shared mode since there is an import library for DLL within SDL/lib dir.

Matthias
  • Attachment: packages.png
    (Size: 16.11KB, Downloaded 983 times)

[Updated on: Wed, 19 March 2008 14:28]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strange breakpoint problem
Next Topic: Help!!! How to compiling src (upp-2007.1.tar.gz) in the LINUX
Goto Forum:
  


Current Time: Mon Apr 28 10:10:13 CEST 2025

Total time taken to generate the page: 0.00800 seconds