This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problems compiling on release config (debug works fine)


Problems compiling on release config (debug works fine)

Postby Marco » Mar 10, 2005 @ 1:17pm

Hi everybody,

I started to play with PF/PH just yesterday (was using GapiDraw till now) and came to quite a weird problem with compiling my project..
Everything went smooth on debug configuration till i didnt try to compile on release config... No change in source code, I just changed project preferences.

I am having similar link problems also with original samples included in PF - Debug config works, Release config does not.

I am using VS.NET 2003 as compiler and PocketFrog 0.8.1 (PocketHAL included) with Fmod 3.74.

Could you please give me an advice, what am i doing wrong?

My other questions....
1) I have not found (maybe i was not reading correct web pages) info about licensing.
I plan to release my game as freeware, and will certainly give credit to PH on custom made credit screen, but would not like to have PocketHAL info splashscreen (banner) showing up....
2) In case of using PF/PH in commerical game, what is its price (I have not found information about exact fee)



thank you very much

Marco/GMG
...my 1st post here in the forum :)


------- Build started: Project: GMGTwins, Configuration: Debug|Win32 -------
Creating temporary file "d:\Windows CE Tools\MyProjects\GMGTwins\Debug\RSP000005.rsp" with contents
[
/Od /I "../PocketFrog" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Gm /EHsc /RTC1 /MLd /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP
".\GMGTwins.cpp"
]
Creating command line "cl.exe @"d:\Windows CE Tools\MyProjects\GMGTwins\Debug\RSP000005.rsp" /nologo"
Creating temporary file "d:\Windows CE Tools\MyProjects\GMGTwins\Debug\RSP000006.rsp" with contents
[
/OUT:"Debug/GMGTwins.exe" /INCREMENTAL /NOLOGO /LIBPATH:"../PocketFrog/lib" /NODEFAULTLIB:"libcmtd.lib" /NODEFAULTLIB:"libcmt.lib" /DEBUG /PDB:"Debug/GMGTwins.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 ../fmodapi374win/api/lib/fmodvc.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "\Windows CE Tools\MyProjects\fmodapi374win\api\lib\fmodvc.lib"
".\Debug\GMGTwins.obj"
".\Debug\GMGTwins.res"
]
Creating command line "link.exe @"d:\Windows CE Tools\MyProjects\GMGTwins\Debug\RSP000006.rsp""

Compiling...
GMGTwins.cpp
Linking...

GMGTwins - 0 error(s), 0 warning(s)


------- Build started: Project: GMGTwins, Configuration: Release|Win32 -------
Creating temporary file "d:\Windows CE Tools\MyProjects\GMGTwins\Release\RSP000007.rsp" with contents
[
/O2 /I "../PocketFrog" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /EHsc /ML /GS /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /c /Wp64 /Zi /TP
".\GMGTwins.cpp"
]
Creating command line "cl.exe @"d:\Windows CE Tools\MyProjects\GMGTwins\Release\RSP000007.rsp" /nologo"
Creating temporary file "d:\Windows CE Tools\MyProjects\GMGTwins\Release\RSP000008.rsp" with contents
[
/OUT:"Release/GMGTwins.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"../PocketFrog/lib" /NODEFAULTLIB:"libcmtd.lib" /NODEFAULTLIB:"libcmt.lib" /DEBUG /PDB:"Release/GMGTwins.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /MACHINE:X86 ../fmodapi374win/api/lib/fmodvc.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "\Windows CE Tools\MyProjects\fmodapi374win\api\lib\fmodvc.lib"
".\Release\GMGTwins.obj"
".\Release\GMGTwins.res"
]
Creating command line "link.exe @"d:\Windows CE Tools\MyProjects\GMGTwins\Release\RSP000008.rsp""


Compiling...
GMGTwins.cpp
Linking...
GMGTwins.obj : error LNK2019: unresolved external symbol "public: void __thiscall Frog::Rasterizer::Clear(unsigned short)" (?Clear@Rasterizer@Frog@@QAEXG@Z) referenced in function "public: virtual bool __thiscall twins::GameInit(void)" (?GameInit@twins@@UAE_NXZ)
GMGTwins.obj : error LNK2019: unresolved external symbol "public: void __thiscall Frog::Rasterizer::SetBlending(unsigned char)" (?SetBlending@Rasterizer@Frog@@QAEXE@Z) referenced in function "public: virtual void __thiscall twins::GameLoop(void)" (?GameLoop@twins@@UAEXXZ)
Release/GMGTwins.exe : fatal error LNK1120: 2 unresolved externals

GMGTwins - 3 error(s), 0 warning(s)
Marco
 


code snippet...

Postby Marco » Mar 10, 2005 @ 1:24pm

maybe this will be also helpful...

bool twins::GameInit() {
..
..
Display* display = GetDisplay();
display->Clear(0);
m_intro_picture1 = LoadImage(display, IDR_LOGO);
m_intro_picture2 = LoadImage(display, IDR_LOGO_GMG);
m_gfx_background = LoadImage(display, IDB_LOGO);
..
..

}

void twins::GameLoop() {
..
..
Display* display = GetDisplay();
display->SetBlending(0xff);
display->Blit(0, 0, m_gfx_background);
display->Update();
..
..
}
Marco
 


Postby Conan » Mar 10, 2005 @ 2:01pm

ifone build is ok and the other not then your project settings are probably wrong for the release version. As I'm not using vs.net I'm not sure if the options are all in the same place but I'm pretty sure you are not pointing at the library.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


PF/PH does not work correctly with Visual.NET 2003

Postby Marco » Mar 10, 2005 @ 4:11pm

I think the problem is even MS VS.NET2003 or PocketFrog/PocketHal library...

It would be nice if someone could check if alpha and blit projects shipped with PF work OK in VS.NET2003 on Release config...

thanx.

to author/s of PF/PH: keep up the good work... PF/PH is cool..
User avatar
Marco
pm Member
 
Posts: 3
Joined: Mar 10, 2005 @ 1:30pm
Location: Slovakia


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron