Jump to content
Eternal Lands Official Forums
kl4Uz

Problems from Guide

Recommended Posts

Hah I looked through my code and figured out what I really did.  Go to line 108 in items.h and make sure the word "extern" is in front of the line.  The line should look like:

 

extern inline GLuint get_items_texture(int no);

 

Then it compiles great.

156657[/snapback]

i made the change, but it's still not happy, still have those unresolved symbols :)

Share this post


Link to post
Share on other sites
i made the change, but it's still not happy, still have those unresolved symbols  :)

156659[/snapback]

 

Hmm that is strange. Is it still the same unresolved symbol? Try changing line 94 in items.c and add an extern to there too. So it looks like:

 

extern inline GLuint get_items_texture(int no)

 

Then go to Build -> Clean Solution to remove all the partially built files and try to build the solution again.

Share this post


Link to post
Share on other sites
No, the lib in front and .a/.la/.so/... (what else?) at the end are automatically added. It's libSDL, libALut, libiconv as well for instance. I was confused by that as well in the beginning, but well. Isn't it nice not having to type the characters 'lib' all over again :)

This is only true for *nix systems. On windows it's SDL.dll and SDL_net.dll (or SDL.lib for static libraries) but the xml library is called libxml2.dll instead of only xml2.dll, thus not following the usual windows naming convention, so lostboy should be right.

 

@lostboy: The uuid.lib library is part of windows. If the compiler doesn't find it, there's something wrong with either your windows or your compiler installation.

 

@ttlanhil: May it be that the VS compiler has some problems with inline code? Have you checked your options whether there's some way to tweak the handling of inline functions? A construction like

extern inline <func-name>

doesn't sound good at all to me, although I'm not absolutely sure on the C semantics of this construction.

Share this post


Link to post
Share on other sites
@ttlanhil: May it be that the VS compiler has some problems with inline code? Have you checked your options whether there's some way to tweak the handling of inline functions? A construction like
extern inline <func-name>

doesn't sound good at all to me, although I'm not absolutely sure on the C semantics of this construction.

156667[/snapback]

 

the only thing i saw was config->c/c++ ->optimisation -> inline function expansion, which seems to give no effect when changed (doesn't fix the problem, anyway)

 

thanks to all helping, this thing is annoying! :)

Share this post


Link to post
Share on other sites
the only thing i saw was config->c/c++ ->optimisation -> inline function expansion, which seems to give no effect when changed (doesn't fix the problem, anyway)

 

thanks to all helping, this thing is annoying! :D

156670[/snapback]

 

The error you are getting now is different (extern must have cleared up the other) and is similar to a previous one had with game_root_win. Try adding all the .c and .h files to your project again (minus cal3d ones) since it looks like a few of them aren't in there. Once you get all the files added click File -> Save All so you won't have to keep adding files to the project.

Edited by Ryldnozz

Share this post


Link to post
Share on other sites
This is only true for *nix systems. On windows it's SDL.dll and SDL_net.dll (or SDL.lib for static libraries) but the xml library is called libxml2.dll instead of only xml2.dll, thus not following the usual windows naming convention, so lostboy should be right.

 

@lostboy: The uuid.lib library is part of windows. If the compiler doesn't find it, there's something wrong with either your windows or your compiler installation.

156667[/snapback]

 

Can you say more about uuid lib. I don't find help with google...

the only file in my HD with 'uuid' is c:\dev-cpp\lib\libuuid.a

Share this post


Link to post
Share on other sites
Can you say more about uuid lib. I don't find help with google...the only file in my HD with 'uuid' is c:\dev-cpp\lib\libuuid.a

I'm sorry, can't help you further here. I searched MSDN, but got a bunch of search results for uuid.lib, most of which were unrelated to your problem. I only knew from prior experience in using VS it's a standard library which is linked to any WIN32 application. Have you searched your VS documentation? IIRC VS comes with much documentation and this docu is not the worst one to use.

Share this post


Link to post
Share on other sites

Thanks a bunch, Malaclypse, finally there's someone with Windows knowledge that helps out with this. These telediagnosis attempts of mine were beginning to turn me into a nervous monster. I hope there will be the day when it's possible to use a common build environment pre-installed on all platforms. It's staggering -- though actually not surprising -- how many problems you get when trying to use the UNIX-like build tools on Windows. If only it would come with a good own toolkit.

Share this post


Link to post
Share on other sites
The error you are getting now is different (extern must have cleared up the other) and is similar to a previous one had with game_root_win.  Try adding all the .c and .h files to your project again (minus cal3d ones) since it looks like a few of them aren't in there.  Once you get all the files added click File -> Save All so you won't have to keep adding files to the project.

156677[/snapback]

 

Thank you muchly! it finally compiled, wahoo!

Share this post


Link to post
Share on other sites

hum :D i find the correct lib name and the project compile et link.

but i'm enter in hell:

i put de el.exe in EL directory (el.exe want 2 more DLL, i give it)

and i run it, after it ask me my login and password, EL bug and shutdown

 

to compile i must use : -DNO_MUSIC

have idea where the bug come from ?

 

 

 

 

My makefile.win

 

# Project: EL

# Makefile created by Dev-C++ 4.9.9.1

CPP = g++.exe

CC = gcc.exe

 

WINDRES = windres.exe

 

RES =

 

OBJ = 3d_objects.o actor_scripts.o actors.o asc.o books.o buddy.o cache.o chat.o colors.o console.o consolewin.o cursors.o dialogues.o draw_scene.o encyclopedia.o errors.o events.o filter.o font.o frustum.o gamewin.o gl_init.o hud.o ignore.o init.o interface.o items.o knowledge.o lights.o loginwin.o main.o manufacture.o map_io.o mapwin.o md2loader.o md5.o misc.o multiplayer.o new_actors.o new_character.o notepad.o openingwin.o particles.o paste.o pathfinder.o reflection.o shadows.o sound.o spells.o stats.o tabs.o text.o textures.o tile_map.o trade.o weather.o 2d_objects.o questlog.o pm_log.o keys.o elwindows.o widgets.o translate.o options.o elconfig.o help.o sector.o rules.o timers.o $(RES)

 

LINKOBJ = 3d_objects.o actor_scripts.o actors.o asc.o books.o buddy.o cache.o chat.o colors.o console.o consolewin.o cursors.o dialogues.o draw_scene.o encyclopedia.o errors.o events.o filter.o font.o frustum.o gamewin.o gl_init.o hud.o ignore.o init.o interface.o items.o knowledge.o lights.o loginwin.o main.o manufacture.o map_io.o mapwin.o md2loader.o md5.o misc.o multiplayer.o new_actors.o new_character.o notepad.o openingwin.o particles.o paste.o pathfinder.o reflection.o shadows.o sound.o spells.o stats.o tabs.o text.o textures.o tile_map.o trade.o weather.o 2d_objects.o questlog.o pm_log.o keys.o elwindows.o widgets.o translate.o options.o elconfig.o help.o sector.o rules.o timers.o $(RES)

 

LIBS = -L"C:/Dev-Cpp/lib" -mwindows -lopengl32 -lSDL -lSDL_net -lALut -lOpenAL32 -llibxml2 -lvorbis -lvorbisfile -lvorbis_d -logg -liconv -liberty

 

INCS = -I"C:/Dev-Cpp/include"

 

CXXINCS = -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include/ogg" -I"C:/Dev-Cpp/include/vorbis" -I"C:/Dev-Cpp/include/DLL"

 

BIN = Debug/EL.exe

 

 

CXXFLAGS = $(CXXINCS) -DWINDOWS -D_WIN32 -Wall -DELC -DNO_MUSIC

CFLAGS = $(CXXFLAGS)

 

 

.PHONY: all all-before all-after clean clean-custom

 

all: all-before $(BIN) all-after

 

clean: clean-custom

 

rm -f $(OBJ) $(BIN)

 

 

 

$(BIN): $(OBJ)

 

$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

 

 

 

3d_objects.o: 3d_objects.c

 

$(CC) -c 3d_objects.c -o 3d_objects.o $(CFLAGS)

 

 

 

actor_scripts.o: actor_scripts.c

 

$(CC) -c actor_scripts.c -o actor_scripts.o $(CFLAGS)

 

 

 

actors.o: actors.c

 

$(CC) -c actors.c -o actors.o $(CFLAGS)

 

 

 

asc.o: asc.c

 

$(CC) -c asc.c -o asc.o $(CFLAGS)

 

 

 

buddy.o: buddy.c

 

$(CC) -c buddy.c -o buddy.o $(CFLAGS)

 

 

 

cache.o: cache.c

 

$(CC) -c cache.c -o cache.o $(CFLAGS)

 

 

 

colors.o: colors.c

 

$(CC) -c colors.c -o colors.o $(CFLAGS)

 

 

 

console.o: console.c

 

$(CC) -c console.c -o console.o $(CFLAGS)

 

 

 

cursors.o: cursors.c

 

$(CC) -c cursors.c -o cursors.o $(CFLAGS)

 

 

 

dialogues.o: dialogues.c

 

$(CC) -c dialogues.c -o dialogues.o $(CFLAGS)

 

 

 

draw_scene.o: draw_scene.c

 

$(CC) -c draw_scene.c -o draw_scene.o $(CFLAGS)

 

 

 

encyclopedia.o: encyclopedia.c

 

$(CC) -c encyclopedia.c -o encyclopedia.o $(CFLAGS)

 

 

 

errors.o: errors.c

 

$(CC) -c errors.c -o errors.o $(CFLAGS)

 

 

 

events.o: events.c

 

$(CC) -c events.c -o events.o $(CFLAGS)

 

 

 

filter.o: filter.c

 

$(CC) -c filter.c -o filter.o $(CFLAGS)

 

 

 

font.o: font.c

 

$(CC) -c font.c -o font.o $(CFLAGS)

 

 

 

frustum.o: frustum.c

 

$(CC) -c frustum.c -o frustum.o $(CFLAGS)

 

 

 

gl_init.o: gl_init.c

 

$(CC) -c gl_init.c -o gl_init.o $(CFLAGS)

 

 

 

hud.o: hud.c

 

$(CC) -c hud.c -o hud.o $(CFLAGS)

 

 

 

ignore.o: ignore.c

 

$(CC) -c ignore.c -o ignore.o $(CFLAGS)

 

 

 

init.o: init.c

 

$(CC) -c init.c -o init.o $(CFLAGS)

 

 

 

interface.o: interface.c

 

$(CC) -c interface.c -o interface.o $(CFLAGS)

 

 

 

items.o: items.c

 

$(CC) -c items.c -o items.o $(CFLAGS)

 

 

 

knowledge.o: knowledge.c

 

$(CC) -c knowledge.c -o knowledge.o $(CFLAGS)

 

 

 

lights.o: lights.c

 

$(CC) -c lights.c -o lights.o $(CFLAGS)

 

 

 

main.o: main.c

 

$(CC) -c main.c -o main.o $(CFLAGS)

 

 

 

manufacture.o: manufacture.c

 

$(CC) -c manufacture.c -o manufacture.o $(CFLAGS)

 

 

 

map_io.o: map_io.c

 

$(CC) -c map_io.c -o map_io.o $(CFLAGS)

 

 

 

md2loader.o: md2loader.c

 

$(CC) -c md2loader.c -o md2loader.o $(CFLAGS)

 

 

 

md5.o: md5.c

 

$(CC) -c md5.c -o md5.o $(CFLAGS)

 

 

 

misc.o: misc.c

 

$(CC) -c misc.c -o misc.o $(CFLAGS)

 

 

 

multiplayer.o: multiplayer.c

 

$(CC) -c multiplayer.c -o multiplayer.o $(CFLAGS)

 

 

 

new_actors.o: new_actors.c

 

$(CC) -c new_actors.c -o new_actors.o $(CFLAGS)

 

 

 

new_character.o: new_character.c

 

$(CC) -c new_character.c -o new_character.o $(CFLAGS)

 

 

 

particles.o: particles.c

 

$(CC) -c particles.c -o particles.o $(CFLAGS)

 

 

 

paste.o: paste.c

 

$(CC) -c paste.c -o paste.o $(CFLAGS)

 

 

 

pathfinder.o: pathfinder.c

 

$(CC) -c pathfinder.c -o pathfinder.o $(CFLAGS)

 

 

 

reflection.o: reflection.c

 

$(CC) -c reflection.c -o reflection.o $(CFLAGS)

 

 

 

shadows.o: shadows.c

 

$(CC) -c shadows.c -o shadows.o $(CFLAGS)

 

 

 

sound.o: sound.c

 

$(CC) -c sound.c -o sound.o $(CFLAGS)

 

 

 

spells.o: spells.c

 

$(CC) -c spells.c -o spells.o $(CFLAGS)

 

 

 

stats.o: stats.c

 

$(CC) -c stats.c -o stats.o $(CFLAGS)

 

 

 

text.o: text.c

 

$(CC) -c text.c -o text.o $(CFLAGS)

 

 

 

textures.o: textures.c

 

$(CC) -c textures.c -o textures.o $(CFLAGS)

 

 

 

tile_map.o: tile_map.c

 

$(CC) -c tile_map.c -o tile_map.o $(CFLAGS)

 

 

 

trade.o: trade.c

 

$(CC) -c trade.c -o trade.o $(CFLAGS)

 

 

 

weather.o: weather.c

 

$(CC) -c weather.c -o weather.o $(CFLAGS)

 

 

 

2d_objects.o: 2d_objects.c

 

$(CC) -c 2d_objects.c -o 2d_objects.o $(CFLAGS)

 

 

 

questlog.o: questlog.c

 

$(CC) -c questlog.c -o questlog.o $(CFLAGS)

 

 

 

pm_log.o: pm_log.c

 

$(CC) -c pm_log.c -o pm_log.o $(CFLAGS)

 

 

 

keys.o: keys.c

 

$(CC) -c keys.c -o keys.o $(CFLAGS)

 

 

 

elwindows.o: elwindows.c

 

$(CC) -c elwindows.c -o elwindows.o $(CFLAGS)

 

 

 

widgets.o: widgets.c

 

$(CC) -c widgets.c -o widgets.o $(CFLAGS)

 

 

 

translate.o: translate.c

 

$(CC) -c translate.c -o translate.o $(CFLAGS)

 

 

 

options.o: options.c

 

$(CC) -c options.c -o options.o $(CFLAGS)

 

 

 

elconfig.o: elconfig.c

 

$(CC) -c elconfig.c -o elconfig.o $(CFLAGS)

 

 

 

help.o: help.c

 

$(CC) -c help.c -o help.o $(CFLAGS)

 

 

 

sector.o: sector.c

 

$(CC) -c sector.c -o sector.o $(CFLAGS)

 

 

 

rules.o: rules.c

 

$(CC) -c rules.c -o rules.o $(CFLAGS)

 

 

 

timers.o: timers.c

 

$(CC) -c timers.c -o timers.o $(CFLAGS)

 

 

 

# Lachesis: all header files are prerequisites, they're included via global.h

 

$(OBJ): *.h

 

 

 

# Lachesis: seems we need rules for headers and c files on Windows

 

#*.c *.h:;

$(subst .o,.c,$(OBJ)) *.h:;

Share this post


Link to post
Share on other sites
hum :D i find the correct lib name and the project compile et link.

but i'm enter in hell:

i put de el.exe in EL directory (el.exe want 2 more DLL, i give it)

and i run it, after it ask me my login and password, EL bug and shutdown

156822[/snapback]

 

Did you copy the actor_defs folder to your eternal lands game folder? It seems like some of the steps I wrote for the Visual Studio.NET were applicable to Dev-C++ also.

Share this post


Link to post
Share on other sites
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized

156594[/snapback]

 

lostboy_fr, what did you do to fix that error in Dev-Cpp? I tried copying the one I had in my visual studio folder and I'm still getting that error.

Share this post


Link to post
Share on other sites
Did you copy the actor_defs folder to your eternal lands game folder?  It seems like some of the steps I wrote for the Visual Studio.NET were applicable to Dev-C++ also.

156828[/snapback]

That's why I merged them into the "Final steps" Section. :P

Share this post


Link to post
Share on other sites
lostboy_fr, what did you do to fix that error in Dev-Cpp?  I tried copying the one I had in my visual studio folder and I'm still getting that error.

156857[/snapback]

 

it's not an error it a warning so the warning is always here

2 lib (xml et alut) are link (or create) this warning

Share this post


Link to post
Share on other sites
Did you copy the actor_defs folder to your eternal lands game folder?  It seems like some of the steps I wrote for the Visual Studio.NET were applicable to Dev-C++ also.

156828[/snapback]

 

i add it and no change

 

if i update all .DLL of EL with the DLL of DevCPP

i have a message EL cannot be initialised correctly (something like that)

Share this post


Link to post
Share on other sites

i update the line of CXXFLAGS like that and all is ok now

 

CXXFLAGS = $(CXXINCS) -DWINDOWS -D_WIN32 -Wall -DELC -DNO_MUSIC -DWINDOW_CHAT -O

 

 

until the next problem ;-)

Share this post


Link to post
Share on other sites

I tried to compile the source with the makefile.win, I received a host of errors. I opted instead to add my own parameter's to DevCPP as instructed by the guide. From there os_types.h was trying to load _G_config.h, however could not find it. Has anyone else had the same problem with os_types trying to find _G_config.h?

 

I was able to compile with no errors by removing all sound from the code, and creating my own makefile. The compiled program will work with an updated .dll, and zlib.dll. Well, just beyond the point of logging in anyways :ph34r: Then it crashes with a segmented fault error (Windows XP issues the error message). Debugging shows the problem within actors_scripts.c :

 

numFrames=actors_list->body_parts->head->numFrames;

 

 

My goofing with the code is no doubt to blame for this ;P. I am sure there would have been a lot easier way to fix this, however I am new to programming.

 

Another thing, when I tried to download the packages from DevCPP's updater I could not find most of them from either of the mirriors. I manually downloaded them to desktop, and distributed the files in the proper directories(I hope). I never received a message about missing files, other than the _G_config.h. When I tried to have DevCPP's package manager distribute the zip files I downloaded , all of the directories were incorrect.. It was a mess. :P

Share this post


Link to post
Share on other sites

Try compiling it with -mwindows and see if it still complains about _G_config.h.

Share this post


Link to post
Share on other sites
Try compiling it with -mwindows and see if it still complains about _G_config.h.

 

I gave it another shot, with the parameter as follows:

Compiler:

-DWINDOWS -Wall -DELC -DWINDOW_CHAT -DNOTEPAD -DSTORAGE

Linker:

-mwindows -lSDL -lopengl32 -llibxml2 -lSDL_net -lALut -lOpenAL32 -lvorbisfile -liberty C:\Dev-Cpp\lib\iconv.lib

 

I also downloaded a fresh install from cvs. Alas, I still get the same error message :D I left most of it out. I believe what I have pasted here is the most important information though.

 

Compiler: Default compiler

Building Makefile: "C:\Makefile.win"

Executing  make...

make.exe -f "C:\Makefile.win" all

gcc.exe -c elc/2d_objects.c -o elc/2d_objects.o -I"C:/Dev-Cpp/include"  -DWINDOWS -Wall -DELC -DWINDOW_CHAT -DNOTEPAD -DSTORAGE 

 

In file included from C:/Dev-Cpp/include/ogg/ogg.h:24,

                from elc/global.h:55,

 

                from elc/2d_objects.c:4:

C:/Dev-Cpp/include/ogg/os_types.h:38:26: _G_config.h: No such file or directory

In file included from C:/Dev-Cpp/include/ogg/ogg.h:24,

                from elc/global.h:55,

                from elc/2d_objects.c:4:

 

Share this post


Link to post
Share on other sites

Ok, without deleting all of the sound references I was able to compile the program.. What I had to do was this:

 

1. Add parameters to linker, and compiler as per guide

 

2. In os_types.h

Change

# ifndef __GNUC__

to

# ifndef GNUC

*edit, despite what I rename it to, it works. (Still learning)

 

3. Remove a lot of #include <math.h> from various .c files

draw_scene.c

lights.c

reflection.c

 

Exactly why this worked.. No clue.. I was just chasing the errors devcpp gave out and now it seems to compile.. except for three issues

 

After Compiling I get the following message:

Warning: .drectve `-defaultlib:uuid.lib ' unrecognized

Warning: .drectve `-defaultlib:uuid.lib ' unrecognized

 

Execution terminated

 

 

And also, when I copied my compiled .exe file to my /eternal lands directory it still crashes after login. I will see where my character is to be placed on the map, it displays as a white cloud.. And I hear the music looping at the first sound note.. I think this may be due to outdated dll files.. I will explore this futher later.

 

And last, in the character generation screen, the front profile, and back picture of the character to be, is missing in the place they should be are grey boxes. I can however create a new character, upon submitting the request however.. The client crashes as per above reasons.

 

**Update**

 

I changed os_types.h as follows:

 

# ifndef __GNUC__

/* MSVC/Borland */

typedef __int64 ogg_int64_t;

typedef __int32 ogg_int32_t;

typedef unsigned __int32 ogg_uint32_t;

typedef __int16 ogg_int16_t;

typedef unsigned __int16 ogg_uint16_t;

# elif defined(__CYGWIN__)

/* Cygwin */

#include <_G_config.h>

typedef _G_int64_t ogg_int64_t;

typedef _G_int32_t ogg_int32_t;

typedef _G_uint32_t ogg_uint32_t;

typedef _G_int16_t ogg_int16_t;

typedef _G_uint16_t ogg_uint16_t;

# elif defined(__MINGW32__)

typedef __int64 ogg_int64_t;

typedef __int32 ogg_int32_tgfd;

typedef unsigned __int32 ogg_uint32_t;

typedef __int16 ogg_int16_t;

typedef unsigned __int16 ogg_uint16_t;

 

# endif

 

Same results as above.. Am I going in the right direction with this? I am thinking that os_types.h has to be changed in some way.. Was this necissary for compiling Eternal Lands?

Edited by Jimik

Share this post


Link to post
Share on other sites
Warning: .drectve `-defaultlib:uuid.lib ' unrecognized

That warning doesn't seem to affect anything. You should still get a working exe file.

 

And also, when I copied my compiled .exe file to my /eternal lands directory it still crashes after login. I will see where my character is to be placed on the map, it displays as a white cloud.. And I hear the music looping at the first sound note.. I think this may be due to outdated dll files.. I will explore this futher later.

Are you sure you read the entire guide? At the bottom of the guide is the very important step of copying a folder to your EL directory called actor_defs. The game will crash without it.

 

The rest of the code should compile as is with very little modifications. Using Dev-C++ I was able to compile it without changing a single line from the CVS source. Visual Studio was a different story.

Edited by Ryldnozz

Share this post


Link to post
Share on other sites
Are you sure you read the entire guide?  At the bottom of the guide is the very important step of copying a folder to your EL directory called actor_defs.  The game will crash without it.

157748[/snapback]

 

 

:unsure::unsure::blink: No I did not do the last bit.... Ok it compiled and now runs.. Thank you Ryldnozz. Hehe, I got caught up in thinking the dll files were not the correct version, and never went back to the guide for further information.. I still had to make the changes to the os_types.h though.

Edited by Jimik

Share this post


Link to post
Share on other sites
I still had to make the changes to the os_types.h though.

157751[/snapback]

Uh.... The thing with math.h has been fixed in the cvs. And that problem you mentioned should only have occurred if you were using the cygwin gcc with the Dev-Cpp includes. :P

Share this post


Link to post
Share on other sites
Uh.... The thing with math.h has been fixed in the cvs. And that problem you mentioned should only have occurred if you were using the cygwin gcc with the Dev-Cpp includes.  :blink:

157885[/snapback]

 

I'm builing under a fresh install of DevCPP, and just downloaded the latest CVS. I also replaced the os_types.h file with the original one from the zipped file.

 

I still receive the error message that _G_config.h is not found.. I have no clue why cygwin is being selected. I am going to install DevCPP on another xp box and installl all fresh files. I am sure it will probably work.

 

The only thing I can think of (Which is not saying much, because I am new with programming in general) is:

 

In the code:

#ifdef _WIN32

 

#  ifndef __GNUC__

  /* MSVC/Borland */

  typedef __int64 ogg_int64_t;

  typedef __int32 ogg_int32_t;

  typedef unsigned __int32 ogg_uint32_t;

  typedef __int16 ogg_int16_t;

  typedef unsigned __int16 ogg_uint16_t;

#  else

  /* Cygwin */

  #include <_G_config.h>

  typedef _G_int64_t ogg_int64_t;

  typedef _G_int32_t ogg_int32_t;

  typedef _G_uint32_t ogg_uint32_t;

  typedef _G_int16_t ogg_int16_t;

  typedef _G_uint16_t ogg_uint16_t;

#  endif

WIN32 has been defined, and __GNUC__ has also been defined. If I comment out all of the Cygwin code I get a bunch of errors. And if I change ifndef __GNUC__ to ifdef __GNUC__ it works

or by adding a

# elif defined(__MINGW32__)

it works.

 

Since it compiles on other machines using DevCPP there is no doubt something is wrong on my setup. I need to snoop around my files and see what I have done.. Regardless I am learning a lot from my mistakes:)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×