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 » Developing U++ » External resources » Using HGE with Ultimate++
Using HGE with Ultimate++ [message #14058] Thu, 07 February 2008 23:49 Go to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
I'm trying to compile a sample-code from http://hge.relishgames.com/ (Haaf's gaming engine) with TheIDE.

I tried to use the recommended settings for dev-cpp (made a new Win32 API-Package) because there are no example-settiings for ultimate++. But i'm getting an error whe compiling the first sample:

----- playground ( GUI MAIN GCC BLITZ WIN32 )
cd H:\Entwicklung\UPP\playground
playground.cpp
c++ -c  -I"H:\Entwicklung\UPP" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -I"C:\MySQL\include" -I"C:\upp\hge18\include" -DflagGUI -DflagMA
	IN -DflagGCC -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=2 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=41 -static   -fexception
	s  -Os -finline-limit=20 -ffunction-sections -x c++ "H:\Entwicklung\UPP\playground\playground.cpp" -o "C:/upp/out/playground/MINGW.Bli
	tz.Gui.Main\playground.o"
compiled in (0:00.01)
C:\upp\mingw\bin\c++.exe -c  -I"H:\Entwicklung\UPP" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -I"C:\MySQL\include" -I"C:\upp\hge18\includ
	e" -DflagGUI -DflagMAIN -DflagGCC -DflagBLITZ -DflagWIN32 -DbmYEAR=2008 -DbmMONTH=2 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=41 
	-static   -fexceptions  -Os -finline-limit=20 -ffunction-sections -x c++ "H:\Entwicklung\UPP\playground\playground.cpp" -o "C:/upp/out
	/playground/MINGW.Blitz.Gui.Main\playground.o"
playground: 1 file(s) built in (0:00.84), 844 msecs / file, duration = 1047 msecs, parallelization 0%
Linking...
c++ -static -mwindows -o "C:\upp\out\MINGW.Blitz.Gui\playground.exe" -Wl,-s -L"C:\upp\mingw\lib" -L"C:\MySQL\bin" -L"C:\upp\hge18\lib\gcc"
	 -Wl,-O,2  "C:/upp/out/playground/MINGW.Blitz.Gui.Main\playground.o" -Wl,--start-group  -lkernel32 -luser32 -ladvapi32 -lshell32 -lwin
	mm -Wl,--end-group
(option '-O 2' ignored)
1 undefined symbol(s):
_hgeCreate@4 (referenced from c:\upp\out\playground\mingw.blitz.gui.main\playground.o:9; _WinMain@16; .text$WinMain)
linking aborted due to fatal errors
collect2: ld returned 1 exit status
C:\upp\mingw\bin\c++.exe -static -mwindows -o "C:\upp\out\MINGW.Blitz.Gui\playground.exe" -Wl,-s -L"C:\upp\mingw\lib" -L"C:\MySQL\bin" -L"
	C:\upp\hge18\lib\gcc" -Wl,-O,2  "C:/upp/out/playground/MINGW.Blitz.Gui.Main\playground.o" -Wl,--start-group  -lkernel32 -luser32 -ladv
	api32 -lshell32 -lwinmm -Wl,--end-group
Error executing C:\upp\mingw\bin\c++.exe -static -mwindows -o "C:\upp\out\MINGW.Blitz.Gui\playground.exe" -Wl,-s -L"C:\upp\mingw\lib" -L"C
	:\MySQL\bin" -L"C:\upp\hge18\lib\gcc" -Wl,-O,2  "C:/upp/out/playground/MINGW.Blitz.Gui.Main\playground.o" -Wl,--start-group  -lkernel3
	2 -luser32 -ladvapi32 -lshell32 -lwinmm -Wl,--end-group
Exitcode: 1

There were errors. (0:01.45)


Has anyone ever tried to get hge running with ultimate++? Since it runs with dev-cpp it has to run with ultimate++ as well?!

Any ideas?

Michael
Re: Using HGE with Ultimate++ [message #14059 is a reply to message #14058] Thu, 07 February 2008 23:52 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I think you forgot linking HGE static libraries (which are actually gate to hge.dll functions). These .libs are provided for MSC and Borland compilers. Maybe for gcc too - I don`t remember exactly.
Re: Using HGE with Ultimate++ [message #14070 is a reply to message #14058] Fri, 08 February 2008 16:05 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Stupid question... how do i link static libraries in my project?

Michael
Re: Using HGE with Ultimate++ [message #14084 is a reply to message #14070] Sat, 09 February 2008 16:14 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Project > Package organizer > *right click in list* > New libraries...

Path for libraries is added in Setup > Build methods > Lib - directories for library files > Append row
Re: Using HGE with Ultimate++ [message #14086 is a reply to message #14058] Sat, 09 February 2008 22:27 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Thank you.

Adding hge in the package organizer solved my problem.

Michael
Previous Topic: Unit Testing Framework
Next Topic: Interesteing RwLock implementation
Goto Forum:
  


Current Time: Thu Mar 28 12:11:08 CET 2024

Total time taken to generate the page: 0.01457 seconds