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
SDL sample needs *.dll [message #14842] Mon, 17 March 2008 19:47 Go to next message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hello folks,

I am using U++ 2007.1 at WIN2K. I wanted to try the SDL example from the folder "examples". First i have ned to correct the path
#ifdef PLATFORM_WIN32
#include <SDL.h>
to
#ifdef PLATFORM_WIN32
#include <C:\upp\sdl\include/SDL.h>
. Then it still complained it would not find the "sdl.dll":
Linking...
c++.exe: SDL.dll: No such file or directory


I have found that file on
C:/upp/sdl/lib/sdl.dll
. I have tried to add this path in "Project / Main Package configuration", but did not succeed. I have also added the packages "Core, Draw, SdlExample".

Obvious i need to tell the path of the *.dll, but don't know where. Can someone give me a pointer?

kind greets
amando
Re: SDL sample needs *.dll [message #14854 is a reply to message #14842] Tue, 18 March 2008 10:22 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

go to "Project/Package organizer ...".

In the right sub window right click and go on "New Compipler options ...", leave the first edit field empty and put into second "-IC:\upp\sdl\include".
Do the equivalent operations with library path (this time with new link options).

Then you should be able to use the original version.

Matthias
Re: SDL sample needs *.dll [message #14857 is a reply to message #14854] Tue, 18 March 2008 12:38 Go to previous messageGo to next message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hello Matthias,

Thanks for your hint. The include is fine now, but still it does not find the SDL.dll. I have tried different versions of the path, as
C:/upp/sdl/lib/sdl.dll
-IC:/upp/sdl/lib/sdl.dll
-LC:/upp/sdl/lib/sdl.dll

(as -L is known from command line)
Apart of the "link options" I have also tried to add it at "libraries", but did not help. The log's return is still the same.

kindly
amando
Re: SDL sample needs *.dll [message #14859 is a reply to message #14857] Tue, 18 March 2008 13:40 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Try with link options and full path (C:/upp/sdl/lib/sdl.dll) and build your application in shared mode.

Command line should look like this:
c++ ... -shared ... "C:/upp/sdl/lib/sdl.dll" ...

You can activate shared build mode in output mode options.

Can you post the resulting verbose linker output?

Matthias

[Updated on: Tue, 18 March 2008 13:52]

Report message to a moderator

Re: SDL sample needs *.dll [message #14902 is a reply to message #14859] Wed, 19 March 2008 12:29 Go to previous messageGo to next message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hello Matthias,

I'm not used to compile at the command line, i'm only using the GUI-IDE. I have done that all you have advised me, but its still the same. I have tried the "use shared libs" and also "all shared", at left and at right. Here is the verbose output:
----- plugin\z ( GCC SO SHARED FORCE_SPEED BLITZ WIN32 ) (1 / 5)
cd C:\upp\uppsrc\plugin\z
adler32.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\adler32.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\adler32.o"
C:\upp\uppsrc\plugin\z\lib\adler32.c:1: warning: -fPIC ignored for target (all code is position indep
	endent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\adler32.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shar
	ed.So\adler32.o"
compiled in (0:00.25)
compress.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\compress.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\compress.o"
C:\upp\uppsrc\plugin\z\lib\compress.c:1: warning: -fPIC ignored for target (all code is position inde
	pendent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\compress.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Sha
	red.So\compress.o"
compiled in (0:00.17)
crc32.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\crc32.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\crc32.o"
C:\upp\uppsrc\plugin\z\lib\crc32.c:1: warning: -fPIC ignored for target (all code is position indepen
	dent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\crc32.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared
	.So\crc32.o"
compiled in (0:00.17)
deflate.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\deflate.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\deflate.o"
C:\upp\uppsrc\plugin\z\lib\deflate.c:1: warning: -fPIC ignored for target (all code is position indep
	endent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\deflate.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shar
	ed.So\deflate.o"
compiled in (0:00.71)
gzio.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\gzio.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\gzio.o"
C:\upp\uppsrc\plugin\z\lib\gzio.c:1: warning: -fPIC ignored for target (all code is position independ
	ent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\gzio.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.
	So\gzio.o"
compiled in (0:00.18)
infblock.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\infblock.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infblock.o"
C:\upp\uppsrc\plugin\z\lib\infblock.c:1: warning: -fPIC ignored for target (all code is position inde
	pendent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\infblock.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Sha
	red.So\infblock.o"
compiled in (0:00.42)
infcodes.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\infcodes.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infcodes.o"
C:\upp\uppsrc\plugin\z\lib\infcodes.c:1: warning: -fPIC ignored for target (all code is position inde
	pendent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\infcodes.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Sha
	red.So\infcodes.o"
compiled in (0:00.29)
inffast.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\inffast.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inffast.o"
C:\upp\uppsrc\plugin\z\lib\inffast.c:1: warning: -fPIC ignored for target (all code is position indep
	endent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\inffast.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shar
	ed.So\inffast.o"
compiled in (0:00.25)
inflate.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\inflate.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inflate.o"
C:\upp\uppsrc\plugin\z\lib\inflate.c:1: warning: -fPIC ignored for target (all code is position indep
	endent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\inflate.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shar
	ed.So\inflate.o"
compiled in (0:00.28)
inftrees.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\inftrees.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inftrees.o"
C:\upp\uppsrc\plugin\z\lib\inftrees.c:1: warning: -fPIC ignored for target (all code is position inde
	pendent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\inftrees.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Sha
	red.So\inftrees.o"
compiled in (0:00.29)
infutil.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\infutil.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infutil.o"
C:\upp\uppsrc\plugin\z\lib\infutil.c:1: warning: -fPIC ignored for target (all code is position indep
	endent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\infutil.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shar
	ed.So\infutil.o"
compiled in (0:00.20)
trees.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\trees.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\trees.o"
C:\upp\uppsrc\plugin\z\lib\trees.c:1: warning: -fPIC ignored for target (all code is position indepen
	dent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\trees.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared
	.So\trees.o"
compiled in (0:00.67)
uncompr.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\uncompr.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\uncompr.o"
C:\upp\uppsrc\plugin\z\lib\uncompr.c:1: warning: -fPIC ignored for target (all code is position indep
	endent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\uncompr.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shar
	ed.So\uncompr.o"
compiled in (0:00.17)
zutil.c
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -x c "C:\upp\uppsrc\
	plugin\z\lib\zutil.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\zutil.o"
C:\upp\uppsrc\plugin\z\lib\zutil.c:1: warning: -fPIC ignored for target (all code is position indepen
	dent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=43 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -x c "C:\upp\uppsrc\plugin\z\lib\zutil.c" -o "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared
	.So\zutil.o"
compiled in (0:00.17)
plugin\z: 14 file(s) built in (0:03.93), 281 msecs / file, duration = 4360 msecs
----- Core ( GCC SO SHARED FORCE_SPEED BLITZ WIN32 ) (2 / 5)
cd C:\upp\uppsrc\Core
BLITZ: Mt.cpp Thread.cpp heap.cpp heapdbg.cpp String.cpp StrUtil.cpp CharSet.cpp Path.cpp App.cpp Str
	eam.cpp BlockStream.cpp Log.cpp Debug.cpp Util.cpp mathutil.cpp Vcont.cpp Hash.cpp Callback.cpp T
	imeDate.cpp Value.cpp Format.cpp Convert.cpp Color.cpp Gtypes.cpp t.cpp Lang.cpp parser.cpp XML.c
	pp Xmlize.cpp Uuid.cpp Ptr.cpp z.cpp Topic.cpp Dli.cpp Win32Com.cpp
C:/upp/out/Core/MINGW.Blitz.Force_speed.Shared.So\$blitz.cpp:1: warning: -fPIC ignored for target (al
	l code is position independent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=48 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 "C:/upp/out/Core/MINGW.Blitz.Force_speed.Shared.So\$blitz.cpp" -o "C:/upp/out/Core/MINGW.Blitz.F
	orce_speed.Shared.So\$blitz.o"
OL_Set.cpp
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=12 -DbmSECOND=48 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -fuse-cxa-atexit -x 
	c++ "C:\upp\uppsrc\Core\OL_Set.cpp" -o "C:/upp/out/Core/MINGW.Blitz.Force_speed.Shared.So\OL_Set.
	o"
C:\upp\uppsrc\Core\OL_Set.cpp:1: warning: -fPIC ignored for target (all code is position independent)
	
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=12 -DbmSECOND=48 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -fuse-cxa-atexit -x c++ "C:\upp\uppsrc\Core\OL_Set.cpp" -o "C:/upp/out/Core/MINGW.Blitz.Force_sp
	eed.Shared.So\OL_Set.o"
compiled in (0:00.15)
Core: 36 file(s) built in (0:25.18), 699 msecs / file, duration = 25359 msecs
----- plugin/bmp ( GCC SO SHARED FORCE_SPEED BLITZ WIN32 ) (3 / 5)
cd C:\upp\uppsrc\plugin\bmp
BLITZ: Bmp.cpp BmpWrite.cpp Icon.cpp
C:/upp/out/plugin/bmp/MINGW.Blitz.Force_speed.Shared.So\$blitz.cpp:1: warning: -fPIC ignored for targ
	et (all code is position independent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=13 -DbmSECOND=13 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 "C:/upp/out/plugin/bmp/MINGW.Blitz.Force_speed.Shared.So\$blitz.cpp" -o "C:/upp/out/plugin/bmp/M
	INGW.Blitz.Force_speed.Shared.So\$blitz.o"
BmpReg.icpp
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC -DflagSO -DflagSHARE
	D -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmHOUR=12 -Dbm
	MINUTE=13 -DbmSECOND=13 -shared -fPIC  -fexceptions  -O3 -ffunction-sections -fuse-cxa-atexit -x 
	c++ "C:\upp\uppsrc\plugin\bmp\BmpReg.icpp" -o "C:/upp/out/plugin/bmp/MINGW.Blitz.Force_speed.Shar
	ed.So\BmpReg.o"
C:\upp\uppsrc\plugin\bmp\BmpReg.icpp:1: warning: -fPIC ignored for target (all code is position indep
	endent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=13 -DbmSECOND=13 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 -fuse-cxa-atexit -x c++ "C:\upp\uppsrc\plugin\bmp\BmpReg.icpp" -o "C:/upp/out/plugin/bmp/MINGW.B
	litz.Force_speed.Shared.So\BmpReg.o"
compiled in (0:02.46)
plugin/bmp: 4 file(s) built in (0:05.98), 1496 msecs / file, duration = 6015 msecs
----- Draw ( GCC SO SHARED FORCE_SPEED BLITZ WIN32 ) (4 / 5)
cd C:\upp\uppsrc\Draw
BLITZ: DrawWin32.cpp DrawX11.cpp ComposeText.cpp DrawText.cpp DrawTextWin32.cpp DrawTextXft.cpp Draw.
	cpp DrawOpWin32.cpp DrawOpX11.cpp DrawData.cpp Drawing.cpp MetaFile.cpp DrawUtil.cpp DrawTextUtil
	.cpp Display.cpp Debug.cpp Image.cpp ImageBlit.cpp ImageWin32.cpp ImageX11.cpp RasterFormat.cpp R
	asterWrite.cpp Palette.cpp Raster.cpp RasterEncoder.cpp ImageOp.cpp ImageChOp.cpp ImageScale.cpp 
	MakeCache.cpp DrawRasterData.cpp Cham.cpp SSettings.cpp
C:/upp/out/Draw/MINGW.Blitz.Force_speed.Shared.So\$blitz.cpp:1: warning: -fPIC ignored for target (al
	l code is position independent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagGCC
	 -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDA
	Y=19 -DbmHOUR=12 -DbmMINUTE=13 -DbmSECOND=19 -shared -fPIC  -fexceptions  -O3 -ffunction-sections
	 "C:/upp/out/Draw/MINGW.Blitz.Force_speed.Shared.So\$blitz.cpp" -o "C:/upp/out/Draw/MINGW.Blitz.F
	orce_speed.Shared.So\$blitz.o"
Draw: 32 file(s) built in (0:19.14), 598 msecs / file, duration = 19250 msecs
----- SDLExample ( MAIN GCC SO SHARED FORCE_SPEED BLITZ WIN32 ) (5 / 5)
SDLExample: circular 'uses' chain
SDLExample: circular 'uses' chain
cd C:\upp\examples\SDLExample
main.cpp
c++ -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagMAIN -DflagGCC -DflagSO 
	-DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=3 -DbmDAY=19 -DbmH
	OUR=12 -DbmMINUTE=13 -DbmSECOND=38 -shared -fPIC -IC:\upp\sdl\include -fexceptions  -O3 -ffunctio
	n-sections -fuse-cxa-atexit -x c++ "C:\upp\examples\SDLExample\main.cpp" -o "C:/upp/out/SDLExampl
	e/MINGW.Blitz.Force_speed.Main.Shared.So\main.o"
C:\upp\examples\SDLExample\main.cpp:1: warning: -fPIC ignored for target (all code is position indepe
	ndent)
C:\upp\mingw\bin\c++.exe -c  -I"C:\upp\examples" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -DflagMAI
	N -DflagGCC -DflagSO -DflagSHARED -DflagFORCE_SPEED -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMON
	TH=3 -DbmDAY=19 -DbmHOUR=12 -DbmMINUTE=13 -DbmSECOND=38 -shared -fPIC -IC:\upp\sdl\include -fexce
	ptions  -O3 -ffunction-sections -fuse-cxa-atexit -x c++ "C:\upp\examples\SDLExample\main.cpp" -o 
	"C:/upp/out/SDLExample/MINGW.Blitz.Force_speed.Main.Shared.So\main.o"
compiled in (0:02.43)
SDLExample: 1 file(s) built in (0:02.42), 2422 msecs / file, duration = 2437 msecs
Linking...
c++ -mwindows -mconsole -o "C:\upp\out\MINGW.Blitz.Force_speed.Shared.So\SDLExample.exe" -Wl,-s -L"C:
	\upp\mingw\lib" -Wl,-O,2 C:/upp/sdl/lib/sdl.dll "C:/upp/out/SDLExample/MINGW.Blitz.Force_speed.Ma
	in.Shared.So\main.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\adler32.o" "C:/upp/ou
	t/plugin/z/MINGW.Blitz.Force_speed.Shared.So\compress.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_s
	peed.Shared.So\crc32.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\deflate.o" "C:/upp
	/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\gzio.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_sp
	eed.Shared.So\infblock.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infcodes.o" "C:/
	upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inffast.o" "C:/upp/out/plugin/z/MINGW.Blitz.Fo
	rce_speed.Shared.So\inflate.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inftrees.o"
	 "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infutil.o" "C:/upp/out/plugin/z/MINGW.Bli
	tz.Force_speed.Shared.So\trees.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\uncompr.
	o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\zutil.o" "C:/upp/out/Core/MINGW.Blitz.F
	orce_speed.Shared.So\$blitz.o" "C:/upp/out/Core/MINGW.Blitz.Force_speed.Shared.So\OL_Set.o" "C:/u
	pp/out/plugin/bmp/MINGW.Blitz.Force_speed.Shared.So\BmpReg.o" "C:/upp/out/plugin/bmp/MINGW.Blitz.
	Force_speed.Shared.So\$blitz.o" "C:/upp/out/Draw/MINGW.Blitz.Force_speed.Shared.So\$blitz.o" -Wl,
	--start-group  -ladvapi32 -lshell32 -lwinmm -lole32 -loleaut32 -luuid -luser32 -lgdi32 "SDL.dll" 
	-lSDLmain -Wl,--end-group
c++.exe: SDL.dll: No such file or directory
C:\upp\mingw\bin\c++.exe -mwindows -mconsole -o "C:\upp\out\MINGW.Blitz.Force_speed.Shared.So\SDLExam
	ple.exe" -Wl,-s -L"C:\upp\mingw\lib" -Wl,-O,2 C:/upp/sdl/lib/sdl.dll "C:/upp/out/SDLExample/MINGW
	.Blitz.Force_speed.Main.Shared.So\main.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\
	adler32.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\compress.o" "C:/upp/out/plugin/
	z/MINGW.Blitz.Force_speed.Shared.So\crc32.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.
	So\deflate.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\gzio.o" "C:/upp/out/plugin/z
	/MINGW.Blitz.Force_speed.Shared.So\infblock.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Share
	d.So\infcodes.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inffast.o" "C:/upp/out/pl
	ugin/z/MINGW.Blitz.Force_speed.Shared.So\inflate.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.
	Shared.So\inftrees.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infutil.o" "C:/upp/o
	ut/plugin/z/MINGW.Blitz.Force_speed.Shared.So\trees.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_spe
	ed.Shared.So\uncompr.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\zutil.o" "C:/upp/o
	ut/Core/MINGW.Blitz.Force_speed.Shared.So\$blitz.o" "C:/upp/out/Core/MINGW.Blitz.Force_speed.Shar
	ed.So\OL_Set.o" "C:/upp/out/plugin/bmp/MINGW.Blitz.Force_speed.Shared.So\BmpReg.o" "C:/upp/out/pl
	ugin/bmp/MINGW.Blitz.Force_speed.Shared.So\$blitz.o" "C:/upp/out/Draw/MINGW.Blitz.Force_speed.Sha
	red.So\$blitz.o" -Wl,--start-group  -ladvapi32 -lshell32 -lwinmm -lole32 -loleaut32 -luuid -luser
	32 -lgdi32 "SDL.dll" -lSDLmain -Wl,--end-group
Error executing C:\upp\mingw\bin\c++.exe -mwindows -mconsole -o "C:\upp\out\MINGW.Blitz.Force_speed.S
	hared.So\SDLExample.exe" -Wl,-s -L"C:\upp\mingw\lib" -Wl,-O,2 C:/upp/sdl/lib/sdl.dll "C:/upp/out/
	SDLExample/MINGW.Blitz.Force_speed.Main.Shared.So\main.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_
	speed.Shared.So\adler32.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\compress.o" "C:
	/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\crc32.o" "C:/upp/out/plugin/z/MINGW.Blitz.For
	ce_speed.Shared.So\deflate.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\gzio.o" "C:/
	upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infblock.o" "C:/upp/out/plugin/z/MINGW.Blitz.F
	orce_speed.Shared.So\infcodes.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inffast.o
	" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\inflate.o" "C:/upp/out/plugin/z/MINGW.Bl
	itz.Force_speed.Shared.So\inftrees.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\infu
	til.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\trees.o" "C:/upp/out/plugin/z/MINGW
	.Blitz.Force_speed.Shared.So\uncompr.o" "C:/upp/out/plugin/z/MINGW.Blitz.Force_speed.Shared.So\zu
	til.o" "C:/upp/out/Core/MINGW.Blitz.Force_speed.Shared.So\$blitz.o" "C:/upp/out/Core/MINGW.Blitz.
	Force_speed.Shared.So\OL_Set.o" "C:/upp/out/plugin/bmp/MINGW.Blitz.Force_speed.Shared.So\BmpReg.o
	" "C:/upp/out/plugin/bmp/MINGW.Blitz.Force_speed.Shared.So\$blitz.o" "C:/upp/out/Draw/MINGW.Blitz
	.Force_speed.Shared.So\$blitz.o" -Wl,--start-group  -ladvapi32 -lshell32 -lwinmm -lole32 -loleaut
	32 -luuid -luser32 -lgdi32 "SDL.dll" -lSDLmain -Wl,--end-group
Exitcode: 1

There were errors. (0:57.71)


kind greets
amando
Re: SDL sample needs *.dll [message #14904 is a reply to message #14859] Wed, 19 March 2008 13:21 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
This worked for me (no source-code changes):index.php?t=getfile&id=1085&private=0James
  • Attachment: build.png
    (Size: 36.72KB, Downloaded 947 times)
Re: SDL sample needs *.dll [message #14908 is a reply to message #14904] Wed, 19 March 2008 14:25 Go to previous messageGo to next 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 901 times)

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

Report message to a moderator

Re: SDL sample needs *.dll [message #14916 is a reply to message #14908] Wed, 19 March 2008 20:46 Go to previous message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hello James, Hello Matthias,

Its RUNNING now!!
1
I have added the pathes recommended, got the OK (hmmm...).
RETURN:
Windows-message "SDL-dll not found" at several
pathes, among them "C:/winnt/system32/" (The one entered in "package organizer" not to see at the MessageBox).


2
I have copied the SDL.dll then to
C:\WINNT\system32

(also for future projects). As it resides there it might go even without the pathes.
RETURN:
runs fine, Smile

It should do a good job to copy my current *.upp, for convenience:

description "SDL demo example";

uses
	Core;

library(MSC) "SDL SDLmain";

library(GCC WIN32) "C:/upp/sdl/lib/SDL.dll SDLmain";

library(LINUX) "SDL SDLmain";

library(FREEBSD) "SDL SDLmain X11 Xext Xrandr Xrender vga vgl aa usbhid ncurses";

options(WIN32) -IC:\upp\sdl\include;

link(GCC WIN32) -LC:/upp/sdl/lib;

link(MSC) -LIBPATH"C:/upp/sdl/lib";

file
	main.cpp;

mainconfig
	"" = "";


@Matthias:
have done it with the tips of James already.
Many thanks to all.

kind greets
amando


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


Current Time: Thu Apr 18 06:26:19 CEST 2024

Total time taken to generate the page: 0.01620 seconds