Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DarkKiller

alternative for 'windows.h' when using Linux??

This topic is 5190 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I tried to write a 3dengine unsing SDL. I used DEV-C++ with MS-Windows to write the main code. I allways tried to keep the code clear from Windows specific code but itseems like that I forgot something. I need an alternative include file for 'windows.h' because many basic things can not be compiled with my KDevelop 3.2 and my Debian Linux running a 2.4.22 Kernel SDL, FreeType6 and OpenGL devs installed. Here is the compiler output. I'm sure its easier to understand what I want when I print this here instead of my (bad) explanation here we go:
quote:
cd "/home/mcnugget/src/MF-Engine/mfengine/debug/src" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" make -k *if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-enginetest.o -MD -MP -MF ".deps/mfengine-enginetest.Tpo" -c -o mfengine-enginetest.o `test -f 'enginetest.cpp' || echo '/home/mcnugget/src/MF-Engine/mfengine/src/'`enginetest.cpp; then mv -f ".deps/mfengine-enginetest.Tpo" ".deps/mfengine-enginetest.Po"; else rm -f ".deps/mfengine-enginetest.Tpo"; exit 1; fi *In file included from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.h:5, *from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.cpp:1: */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:9: error: ' BITMAPFILEHEADER' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:10: error: ' BITMAPINFOHEADER' is used as a type, but is not defined as a type. *In file included from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.h:9, *from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.cpp:1: */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:12: error: '__int64' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:14: error: Fehler beim Parsen before `,' token */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:18: error: 'DWORD' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:19: error: 'DWORD' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:22: error: 'DWORD' is used as a type, but is not defined as a type. *make: *** [mfengine-enginetest.o] Fehler 1 *if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFEngine.o -MD -MP -MF ".deps/mfengine-MFEngine.Tpo" -c -o mfengine-MFEngine.o `test -f 'MFEngine.cpp' || echo '/home/mcnugget/src/MF-Engine/mfengine/src/'`MFEngine.cpp; then mv -f ".deps/mfengine-MFEngine.Tpo" ".deps/mfengine-MFEngine.Po"; else rm -f ".deps/mfengine-MFEngine.Tpo"; exit 1; fi *In file included from /home/mcnugget/src/MF-Engine/mfengine/src/MFEngine.cpp:3: */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:9: error: ' BITMAPFILEHEADER' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:10: error: ' BITMAPINFOHEADER' is used as a type, but is not defined as a type. *if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFText.o -MD -MP -MF ".deps/mfengine-MFText.Tpo" -c -o mfengine-MFText.o `test -f 'MFText.cpp' || echo '/home/mcnugget/src/MF-Engine/mfengine/src/'`MFText.cpp; then mv -f ".deps/mfengine-MFText.Tpo" ".deps/mfengine-MFText.Po"; else rm -f ".deps/mfengine-MFText.Tpo"; exit 1; fi *make: *** [mfengine-MFEngine.o] Fehler 1 */home/mcnugget/src/MF-Engine/mfengine/src/MFText.cpp: In member function `int *MFText::LoadFont(const char*, unsigned int, const char*)': */home/mcnugget/src/MF-Engine/mfengine/src/MFText.cpp:202: error: `_stricmp' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFText.cpp:202: error: (Each undeclared identifier is reported only once for each function it appears in.) */home/mcnugget/src/MF-Engine/mfengine/src/MFText.cpp: In member function `void *MFText::UnloadFont(const char*)': */home/mcnugget/src/MF-Engine/mfengine/src/MFText.cpp:263: error: `_stricmp' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFText.cpp: In member function `int *MFText:rint(const char*, float, float, const char*, ...)': */home/mcnugget/src/MF-Engine/mfengine/src/MFText.cpp:274: error: `_stricmp' undeclared (first use this function) *make: *** [mfengine-MFText.o] Fehler 1 *if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFTexture.o -MD -MP -MF ".deps/mfengine-MFTexture.Tpo" -c -o mfengine-MFTexture.o `test -f 'MFTexture.cpp' || echo '/home/mcnugget/src/MF-Engine/mfengine/src/'`MFTexture.cpp; then mv -f ".deps/mfengine-MFTexture.Tpo" ".deps/mfengine-MFTexture.Po"; else rm -f ".deps/mfengine-MFTexture.Tpo"; exit 1; fi *In file included from /home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:1: */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:9: error: ' BITMAPFILEHEADER' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:10: error: ' BITMAPINFOHEADER' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp: In member function ` *uint MFTexture::LoadTexture(const char*)': */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:85: error: `_stricmp' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:85: error: (Each undeclared identifier is reported only once for each function it appears in.) */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp: In member function ` *uint MFTexture::FindTexture(const char*)': */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:105: error: `_stricmp' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp: In member function ` *void MFTexture::UnloadTexture(const char*)': */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:115: error: `_stricmp' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp: In member function ` *uint MFTexture::LoadBMP(const char*)': */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:162: error: 'struct BITMAP_IMAGE' has no member named 'bmfHeader' */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:165: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' */ho *if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFTimer.o -MD -MP -MF ".deps/mfengine-MFTimer.Tpo" -c -o mfengine-MFTimer.o `test -f 'MFTimer.cpp' || echo '/home/mcnugget/src/MF-Engine/mfengine/src/'`MFTimer.cpp; then mv -f ".deps/mfengine-MFTimer.Tpo" ".deps/mfengine-MFTimer.Po"; else rm -f ".deps/mfengine-MFTimer.Tpo"; exit 1; fi *me/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:168: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:170: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:171: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:171: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:173: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:186: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' */home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:186: error: 'struct BITMAP_IMAGE' has no member named 'bmiHeader' *make: *** [mfengine-MFTexture.o] Fehler 1 *if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFVector2D.o -MD -MP -MF ".deps/mfengine-MFVector2D.Tpo" -c -o mfengine-MFVector2D.o `test -f 'MFVector2D.cpp' || echo '/home/mcnugget/src/MF-Engine/mfengine/src/'`MFVector2D.cpp; then mv -f ".deps/mfengine-MFVector2D.Tpo" ".deps/mfengine-MFVector2D.Po"; else rm -f ".deps/mfengine-MFVector2D.Tpo"; exit 1; fi *In file included from /home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:1: */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:12: error: '__int64' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:14: error: Fehler beim Parsen before `,' token */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:18: error: 'DWORD' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:19: error: 'DWORD' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:22: error: 'DWORD' is used as a type, but is not defined as a type. */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp: In constructor ` *MFTimer::MFTimer()': */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: `LARGE_INTEGER' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: (Each undeclared identifier is reported only once for each *if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFVector3D.o -MD -MP -MF ".deps/mfengine-MFVector3D.Tpo" -c -o mfengine-MFVector3D.o `test -f 'MFVector3D.cpp' || echo '/home/mcnugget/src/MF-Engine/mfengine/src/'`MFVector3D.cpp; then mv -f ".deps/mfengine-MFVector3D.Tpo" ".deps/mfengine-MFVector3D.Po"; else rm -f ".deps/mfengine-MFVector3D.Tpo"; exit 1; fi *function it appears *in.) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: Fehler beim Parsen before `)' token */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: `pf' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: ` QueryPerformanceFrequency' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:7: error: `tickold' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp: In member function `void *MFTimer::_Val2Proc()': */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:18: error: Fehler beim Parsen before `)' token */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:18: error: `pc2' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:18: error: ` QueryPerformanceCounter' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:19: error: `pc1' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:20: error: Fehler beim Parsen before `)' token */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp: In member function `int *MFTimer::_GetFps()': */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:27: error: `tick' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:28: error: `tickdiff' undeclared (first use this function) *make: *** [mfengine-MFTimer.o] Fehler 1 */home/mcnugget/src/MF-Engine/mfengine/src/MFVector2D.cpp: In member function ` *double MFVector2D::Angle(MFVector2D)': */home/mcnugget/src/MF-Engine/mfengine/src/MFVector2D.cpp:117: error: `_isnan' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFVector2D.cpp:117: error: (Each undeclared identifier is reported only once for each function it appears in.) *make: *** [mfengine-MFVector2D.o] Fehler 1 */home/mcnugget/src/MF-Engine/mfengine/src/MFVector3D.cpp: In member function ` *double MFVector3D::Angle(MFVector3D)': */home/mcnugget/src/MF-Engine/mfengine/src/MFVector3D.cpp:185: error: `_isnan' undeclared (first use this function) */home/mcnugget/src/MF-Engine/mfengine/src/MFVector3D.cpp:185: error: (Each undeclared identifier is reported only once for each function it appears in.) *make: *** [mfengine-MFVector3D.o] Fehler 1 *make: Das Target »all« wurde wegen Fehlern nicht aktualisiert. **** Exited with status: 2 ***
With best regards DarkKiller [edited by - DarkKiller on March 6, 2004 2:14:46 PM]

Share this post


Link to post
Share on other sites
Advertisement
I'm very sorry about the style of my post!

Tell me what tag I need

like
 and   
(I don't think that the forum will show my examples...) to clean it up!

Sorry!




ok, I found it! 'quote' was good enough

[edited by - DarkKiller on March 6, 2004 2:15:41 PM]

Share this post


Link to post
Share on other sites
You have to rewrite your code so that it doesn''t use windows.h. There is no such alternative on *nix systems.

Stuff like DWORD and the BITMAP stuff is easy: just copy the defines from windows.h, or, better, get rid of it altogether.

Anything that starts with an underscore (like _stricmp) is MSVCRT-specific, but should have a glibc equivalent (strcasecmp in this case, I think).

QueryPerformanceCounter I''m not entirely sure how to get rid of, but I''m pretty sure SDL has it''s own timer library, although it''s precision isn''t very good. There was topic in this forum on Unix timers not long ago.

Share this post


Link to post
Share on other sites
You could perhaps use Winelib if you have to.

Since you''re using SDL, why don''t you use the facitities it provides?

You have SDL_GetTicks and SDL_LoadBMP, for example.

And I''m sure _stricmp could be replaced with something in the standard C library.

DWORD and such can easily be typedefed.

Share this post


Link to post
Share on other sites
"*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:18: error: Fehler beim Parsen before `)'' token "

German compiler?

Share this post


Link to post
Share on other sites
Thankx for this ''super-fast'' answer!

Well, I searched the SDL-Manual... I''ll that do again, but I think the only thing a found was an equivalent to GetTickCount(). This works well!

But thank you for the other things you said like ''strcasecmp'' I''ll try that!

I''ll drop a line here when its working!

regards

DarkKiller

Share this post


Link to post
Share on other sites
Your code is full with windows specific code.

Some solutions :

- DWORD is probably a typedef for unsigned long, so dump that in a header file or just replace it with unsigned long

- QueryPerformanceTimer can be replaced by gettimeofday (linux specific) or even better with SDL_GetTicks(), which is cross platform.

- The whole BITMAP stuff : use SDL''s bitmap loading functionality (SDL_LoadBMP)

- _stricmp : there''s strcasecmp which ignores the case and compares two strings (not exactly the same, but you can allways write it yourself).

- _isnan : why use something WIN32 specific when there is isnan in the standard C library ?

In general avoid functions in Windows which start with an underscore, they are not cross platform.


Share this post


Link to post
Share on other sites
Ho Bulma !

My German compiler speaks Germish (or Denglish)

@Robinei: I use PNG for the Textures. The file is much smaller and I can use things like transparency with the alpha-value (0-255) included within this file definition!

Winelib seems to be interesting! The SDL_GetTicks() is allready in use!

QueryPerformanceCounter() is used to get the time one single frame needs to be rendered! The SDL_GetTicks() and GetTickCount() is not able to give such a precision! So its absolutly necessary have somthing like that! It returns the time in micro seconds!

Share this post


Link to post
Share on other sites
ok, many things can compile correct now!

Great help after such a short time!!

But I''m still searching for


__int64
and LARGE_INTEGER

And I''m still searching for the defs for the BitMap..

Share this post


Link to post
Share on other sites
It looks like this now:

quote:

cd "/home/mcnugget/src/MF-Engine/mfengine/debug/src" && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" make -k
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-ciSDL.o -MD -MP -MF ".deps/mfengine-ciSDL.Tpo" -c -o mfengine-ciSDL.o `test -f ''ciSDL.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`ciSDL.cpp; then mv -f ".deps/mfengine-ciSDL.Tpo" ".deps/mfengine-ciSDL.Po"; else rm -f ".deps/mfengine-ciSDL.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-enginetest.o -MD -MP -MF ".deps/mfengine-enginetest.Tpo" -c -o mfengine-enginetest.o `test -f ''enginetest.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`enginetest.cpp; then mv -f ".deps/mfengine-enginetest.Tpo" ".deps/mfengine-enginetest.Po"; else rm -f ".deps/mfengine-enginetest.Tpo"; exit 1; fi
*In file included from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.h:5,
*from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.cpp:1:
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:9: error: '' BITMAPFILEHEADER'' is used as a type, but is not defined as a type.
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:10: error: '' BITMAPINFOHEADER'' is used as a type, but is not defined as a type.
*In file included from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.h:9,
*from /home/mcnugget/src/MF-Engine/mfengine/src/enginetest.cpp:1:
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:12: error: ''__int64'' is used as a type, but is not defined as a type.
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:14: error: Fehler beim Parsen before `,'' token
*make: *** [mfengine-enginetest.o] Fehler 1
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-globals.o -MD -MP -MF ".deps/mfengine-globals.Tpo" -c -o mfengine-globals.o `test -f ''globals.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`globals.cpp; then mv -f ".deps/mfengine-globals.Tpo" ".deps/mfengine-globals.Po"; else rm -f ".deps/mfengine-globals.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFColor.o -MD -MP -MF ".deps/mfengine-MFColor.Tpo" -c -o mfengine-MFColor.o `test -f ''MFColor.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFColor.cpp; then mv -f ".deps/mfengine-MFColor.Tpo" ".deps/mfengine-MFColor.Po"; else rm -f ".deps/mfengine-MFColor.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFEngine.o -MD -MP -MF ".deps/mfengine-MFEngine.Tpo" -c -o mfengine-MFEngine.o `test -f ''MFEngine.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFEngine.cpp; then mv -f ".deps/mfengine-MFEngine.Tpo" ".deps/mfengine-MFEngine.Po"; else rm -f ".deps/mfengine-MFEngine.Tpo"; exit 1; fi
*In file included from /home/mcnugget/src/MF-Engine/mfengine/src/MFEngine.cpp:3:
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:9: error: '' BITMAPFILEHEADER'' is used as a type, but is not defined as a type.
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:10: error: '' BITMAPINFOHEADER'' is used as a type, but is not defined as a type.
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFInput.o -MD -MP -MF ".deps/mfengine-MFInput.Tpo" -c -o mfengine-MFInput.o `test -f ''MFInput.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFInput.cpp; then mv -f ".deps/mfengine-MFInput.Tpo" ".deps/mfengine-MFInput.Po"; else rm -f ".deps/mfengine-MFInput.Tpo"; exit 1; fi
*make: *** [mfengine-MFEngine.o] Fehler 1
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFMatrix.o -MD -MP -MF ".deps/mfengine-MFMatrix.Tpo" -c -o mfengine-MFMatrix.o `test -f ''MFMatrix.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFMatrix.cpp; then mv -f ".deps/mfengine-MFMatrix.Tpo" ".deps/mfengine-MFMatrix.Po"; else rm -f ".deps/mfengine-MFMatrix.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFPoint2D.o -MD -MP -MF ".deps/mfengine-MFPoint2D.Tpo" -c -o mfengine-MFPoint2D.o `test -f ''MFPoint2D.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFPoint2D.cpp; then mv -f ".deps/mfengine-MFPoint2D.Tpo" ".deps/mfengine-MFPoint2D.Po"; else rm -f ".deps/mfengine-MFPoint2D.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFPoint3D.o -MD -MP -MF ".deps/mfengine-MFPoint3D.Tpo" -c -o mfengine-MFPoint3D.o `test -f ''MFPoint3D.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFPoint3D.cpp; then mv -f ".deps/mfengine-MFPoint3D.Tpo" ".deps/mfengine-MFPoint3D.Po"; else rm -f ".deps/mfengine-MFPoint3D.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFQuaternion.o -MD -MP -MF ".deps/mfengine-MFQuaternion.Tpo" -c -o mfengine-MFQuaternion.o `test -f ''MFQuaternion.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFQuaternion.cpp; then mv -f ".deps/mfengine-MFQuaternion.Tpo" ".deps/mfengine-MFQuaternion.Po"; else rm -f ".deps/mfengine-MFQuaternion.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFRotation.o -MD -MP -MF ".deps/mfengine-MFRotation.Tpo" -c -o mfengine-MFRotation.o `test -f ''MFRotation.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFRotation.cpp; then mv -f ".deps/mfengine-MFRotation.Tpo" ".deps/mfengine-MFRotation.Po"; else rm -f ".deps/mfengine-MFRotation.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFText.o -MD -MP -MF ".deps/mfengine-MFText.Tpo" -c -o mfengine-MFText.o `test -f ''MFText.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFText.cpp; then mv -f ".deps/mfengine-MFText.Tpo" ".deps/mfengine-MFText.Po"; else rm -f ".deps/mfengine-MFText.Tpo"; exit 1; fi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFTexture.o -MD -MP -MF ".deps/mfengine-MFTexture.Tpo" -c -o mfengine-MFTexture.o `test -f ''MFTexture.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFTexture.cpp; then mv -f ".deps/mfengine-MFTexture.Tpo" ".deps/mfengine-MFTexture.Po"; else rm -f ".deps/mfengine-MFTexture.Tpo"; exit 1; fi
*In file included from /home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:1:
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:9: error: '' BITMAPFILEHEADER'' is used as a type, but is not defined as a type.
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.h:10: error: '' BITMAPINFOHEADER'' is used as a type, but is not defined as a type.
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp: In member function `
*uint MFTexture::LoadBMP(const char*)'':
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:162: error: ''struct BITMAP_IMAGE'' has no member named ''bmfHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:165: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:168: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:170: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:171: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:171: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:173: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:186: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTexture.cpp:186: error: ''struct BITMAP_IMAGE'' has no member named ''bmiHeader''
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFTimer.o -MD -MP -MF ".deps/mfengine-MFTimer.Tpo" -c -o mfengine-MFTimer.o `test -f ''MFTimer.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFTimer.cpp; then mv -f ".deps/mfengine-MFTimer.Tpo" ".deps/mfengine-MFTimer.Po"; else rm -f ".deps/mfengine-MFTimer.Tpo"; exit 1; fi
*make: *** [mfengine-MFTexture.o] Fehler 1
*In file included from /home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:1:
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:12: error: ''__int64'' is used as a type, but is not defined as a type.
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.h:14: error: Fehler beim Parsen before `,'' token
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp: In constructor `
*MFTimer::MFTimer()'':
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: `LARGE_INTEGER'' undeclared (first use this function)
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: (Each undeclared identifier is reported only once for each function it appears in.)
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: Fehler beim Parsen before `)'' token
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: `pf'' undeclared (first use this function)
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:5: error: ` QueryPerformanceFrequency'' undeclared (first use this functi
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFVector2D.o -MD -MP -MF ".deps/mfengine-MFVector2D.Tpo" -c -o mfengine-MFVector2D.o `test -f ''MFVector2D.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFVector2D.cpp; then mv -f ".deps/mfengine-MFVector2D.Tpo" ".deps/mfengine-MFVector2D.Po"; else rm -f ".deps/mfengine-MFVector2D.Tpo"; exit 1; fi
*on)
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp: In member function `void
*MFTimer::_Val2Proc()'':
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:18: error: Fehler beim Parsen before `)'' token
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:18: error: `pc2'' undeclared (first use this function)
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:18: error: ` QueryPerformanceCounter'' undeclared (first use this function)
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:19: error: `pc1'' undeclared (first use this function)
*/home/mcnugget/src/MF-Engine/mfengine/src/MFTimer.cpp:20: error: Fehler beim Parsen before `)'' token
*if g++ -DHAVE_CONFIG_H -I. -I/home/mcnugget/src/MF-Engine/mfengine/src -I.. -O0 -g3 -MT mfengine-MFVector3D.o -MD -MP -MF ".deps/mfengine-MFVector3D.Tpo" -c -o mfengine-MFVector3D.o `test -f ''MFVector3D.cpp'' || echo ''/home/mcnugget/src/MF-Engine/mfengine/src/''`MFVector3D.cpp; then mv -f ".deps/mfengine-MFVector3D.Tpo" ".deps/mfengine-MFVector3D.Po"; else rm -f ".deps/mfengine-MFVector3D.Tpo"; exit 1; fi
*make: *** [mfengine-MFTimer.o] Fehler 1
*make: Das Target »all« wurde wegen Fehlern nicht aktualisiert.
**** Exited with status: 2 ***

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!