libenet error

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Avalos
Peon
Peon
Posts: 13
Joined: Sun May 27, 2007 9:51 pm

libenet error

Post by Avalos » Sun May 27, 2007 9:53 pm

i have my compiled libenet.a and:

Code: Select all

Switching to target: default
Linking executable: tmw.exe
.objs\src\net\connection.o:connection.cpp:(.text+0x27b): undefined reference to `enet_host_flush'
.objs\src\net\network.o:network.cpp:(.text+0x870): undefined reference to `enet_host_service'
C:\Archivos de programa\CodeBlocks\lib/libenet.a(peer.o):peer.c:(.text+0x9cc): undefined reference to `enet_host_flush'
C:\Archivos de programa\CodeBlocks\lib/libenet.a(peer.o):peer.c:(.text+0xa83): undefined reference to `enet_host_flush'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 6 seconds)
0 errors, 0 warnings
 
why? :S
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Tue May 29, 2007 8:06 pm

did you add enet to the list of libraries the project is using in your IDE?
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Avalos
Peon
Peon
Posts: 13
Joined: Sun May 27, 2007 9:51 pm

Post by Avalos » Tue May 29, 2007 10:46 pm

Project : The Mana World
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Administrador\Mis documentos\Descargas\Server Files\The Mana World\
--------------------------------------------------------------------------------
Switching to target: default
Linking executable: tmw.exe
.objs\src\net\connection.o:connection.cpp:(.text+0x27b): undefined reference to `enet_host_flush'
.objs\src\net\network.o:network.cpp:(.text+0x870): undefined reference to `enet_host_service'
..\..\..\..\..\..\Archivos de programa\CodeBlocks\lib\libenet.a(peer.o):peer.c:(.text+0x9cc): undefined reference to `enet_host_flush'
..\..\..\..\..\..\Archivos de programa\CodeBlocks\lib\libenet.a(peer.o):peer.c:(.text+0xa83): undefined reference to `enet_host_flush'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 27 seconds)
0 errors, 0 warnings
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Wed May 30, 2007 1:05 pm

Could it be you didn't compile the latest version of enet?
Avalos
Peon
Peon
Posts: 13
Joined: Sun May 27, 2007 9:51 pm

Post by Avalos » Wed May 30, 2007 9:31 pm

JoshLangley
Peon
Peon
Posts: 45
Joined: Sat Jun 23, 2007 6:42 am
Location: Melbourne, Australia

Post by JoshLangley » Tue Jun 26, 2007 11:43 am

Hey I downloaded the 'enet-1.1.tar.tar' from here, and tried to compile via Dev-C++'s 'import MS Visual Project' function. I got these errors... Can any1 shed some light on this, I don't understand it....

Code: Select all

Compiler: Default compiler
Building Makefile: "C:\Users\joslan\workspace\enet-1.1\Makefile.win"
Executing  make clean
rm -f host.o list.o callbacks.o packet.o peer.o protocol.o unix.o win32.o  enet.a

gcc.exe -D__DEBUG__ -c host.c -o host.o -I"C:/Dev-Cpp/include"  -I"include/enet"  -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_MBCS -D_LIB  -w -fexceptions -fexpensive-optimizations -g3 -fmessage-length=0 -mmmx

In file included from C:/Dev-Cpp/include/string.h:24,
                 from host.c:6:
C:/Dev-Cpp/include/stddef.h:6:24: stddef.h: No such file or directory
In file included from host.c:6:

C:/Dev-Cpp/include/string.h:36: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:37: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:38: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:39: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:40: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:46: error: syntax error before "strcspn"

C:/Dev-Cpp/include/string.h:49: error: syntax error before "strlen"

C:/Dev-Cpp/include/string.h:50: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:51: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:52: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:55: error: syntax error before "strspn"

C:/Dev-Cpp/include/string.h:58: error: syntax error before "strxfrm"

C:/Dev-Cpp/include/string.h:65: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:66: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:72: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:73: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:77: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:80: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:81: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:90: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:91: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:100: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:102: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h: In function `strncasecmp':
C:/Dev-Cpp/include/string.h:103: error: `__sz1' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h:103: error: (Each undeclared identifier is reported only once
C:/Dev-Cpp/include/string.h:103: error: for each function it appears in.)
C:/Dev-Cpp/include/string.h:103: error: `__sz2' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h:103: error: `__sizeMaxCompare' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h: At top level:
C:/Dev-Cpp/include/string.h:104: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:109: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:120: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:120: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:121: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:121: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:122: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:123: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:124: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:124: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:125: error: syntax error before "wcscspn"
C:/Dev-Cpp/include/string.h:127: error: syntax error before "wcslen"
C:/Dev-Cpp/include/string.h:128: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:129: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:130: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:130: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:131: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:131: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:132: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:132: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:133: error: syntax error before "wcsspn"
C:/Dev-Cpp/include/string.h:134: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:135: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:135: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:136: error: syntax error before "wcsxfrm"
C:/Dev-Cpp/include/string.h:146: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:147: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:148: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:149: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:149: error: syntax error before '*' token

C:/Dev-Cpp/include/string.h:150: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:151: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:151: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:152: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:152: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:153: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:153: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:154: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:154: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:157: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:158: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:167: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:169: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h: In function `wcscmpi':

C:/Dev-Cpp/include/string.h:170: error: `__ws1' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h:170: error: `__ws2' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h: At top level:
C:/Dev-Cpp/include/string.h:171: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:171: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:172: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:173: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:174: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:174: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:175: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:176: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:176: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:177: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:177: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:178: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:178: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h:179: error: syntax error before '*' token

C:/Dev-Cpp/include/string.h:179: error: syntax error before '*' token
In file included from C:/Dev-Cpp/include/enet/enet.h:13,
                 from host.c:7:
C:/Dev-Cpp/include/stdlib.h:80: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:151: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:263: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:308: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:309: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:323: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:325: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h: In function `wcstof':
C:/Dev-Cpp/include/stdlib.h:326: error: `nptr' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:326: error: `endptr' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h: At top level:
C:/Dev-Cpp/include/stdlib.h:327: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:330: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:331: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:335: error: syntax error before "wcstombs"
C:/Dev-Cpp/include/stdlib.h:336: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:338: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:339: error: syntax error before "mbstowcs"
C:/Dev-Cpp/include/stdlib.h:340: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:347: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:360: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:361: error: syntax error before ')' token

C:/Dev-Cpp/include/stdlib.h:362: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:363: error: syntax error before ')' token
C:/Dev-Cpp/include/stdlib.h:409: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:422: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before "wchar_t"

C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:427: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:428: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:429: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:430: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:481: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:494: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h: In function `wtoll':
C:/Dev-Cpp/include/stdlib.h:495: error: `_w' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h: At top level:
C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h: In function `lltow':
C:/Dev-Cpp/include/stdlib.h:497: error: `_n' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:497: error: `_w' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:497: error: `_i' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h: At top level:
C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h: In function `ulltow':
C:/Dev-Cpp/include/stdlib.h:499: error: `_n' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:499: error: `_w' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:499: error: `_i' undeclared (first use in this function)

In file included from C:/Dev-Cpp/include/windows.h:47,
                 from C:/Dev-Cpp/include/winsock2.h:22,
                 from C:/Dev-Cpp/include/enet/win32.h:16,
                 from C:/Dev-Cpp/include/enet/enet.h:16,
                 from host.c:7:
C:/Dev-Cpp/include/stdarg.h:6:24: stdarg.h: No such file or directory
In file included from C:/Dev-Cpp/include/windows.h:50,
                 from C:/Dev-Cpp/include/winsock2.h:22,
                 from C:/Dev-Cpp/include/enet/win32.h:16,
                 from C:/Dev-Cpp/include/enet/enet.h:16,
                 from host.c:7:
C:/Dev-Cpp/include/winbase.h: At top level:

C:/Dev-Cpp/include/winbase.h:1308: error: syntax error before "va_list"

C:/Dev-Cpp/include/winbase.h:1309: error: syntax error before "va_list"

In file included from C:/Dev-Cpp/include/windows.h:55,
                 from C:/Dev-Cpp/include/winsock2.h:22,
                 from C:/Dev-Cpp/include/enet/win32.h:16,
                 from C:/Dev-Cpp/include/enet/enet.h:16,
                 from host.c:7:
C:/Dev-Cpp/include/winuser.h:3896: error: syntax error before "va_list"

C:/Dev-Cpp/include/winuser.h:3897: error: syntax error before "va_list"

In file included from C:/Dev-Cpp/include/enet/enet.h:16,
                 from host.c:7:
C:/Dev-Cpp/include/enet/win32.h:33: error: syntax error before "size_t"

C:/Dev-Cpp/include/enet/win32.h:35: error: syntax error before '}' token

In file included from C:/Dev-Cpp/include/enet/enet.h:23,
                 from host.c:7:
C:/Dev-Cpp/include/enet/list.h:28: error: syntax error before "enet_list_size"

In file included from C:/Dev-Cpp/include/enet/enet.h:24,
                 from host.c:7:
C:/Dev-Cpp/include/enet/callbacks.h:12: error: syntax error before "size"

In file included from host.c:7:
C:/Dev-Cpp/include/enet/enet.h:114: error: syntax error before "size_t"

C:/Dev-Cpp/include/enet/enet.h:116: error: conflicting types for 'data'

C:/Dev-Cpp/include/enet/win32.h:34: error: previous declaration of 'data' was here

C:/Dev-Cpp/include/enet/enet.h:117: error: syntax error before "dataLength"

C:/Dev-Cpp/include/enet/enet.h:119: error: syntax error before '}' token

C:/Dev-Cpp/include/enet/enet.h:139: error: syntax error before "ENetPacket"

C:/Dev-Cpp/include/enet/enet.h:151: error: syntax error before "ENetPacket"

C:/Dev-Cpp/include/enet/enet.h:221: error: syntax error before "size_t"

C:/Dev-Cpp/include/enet/enet.h:263: error: syntax error before '}' token

C:/Dev-Cpp/include/enet/enet.h:287: error: syntax error before "ENetPeer"

C:/Dev-Cpp/include/enet/enet.h:289: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:291: error: syntax error before "packetSize"

C:/Dev-Cpp/include/enet/enet.h:294: error: syntax error before "commandCount"

C:/Dev-Cpp/include/enet/enet.h:295: error: syntax error before "buffers"

C:/Dev-Cpp/include/enet/enet.h:296: error: syntax error before "bufferCount"

C:/Dev-Cpp/include/enet/enet.h:299: error: syntax error before "receivedDataLength"

C:/Dev-Cpp/include/enet/enet.h:341: error: syntax error before "ENetPeer"

C:/Dev-Cpp/include/enet/enet.h:343: error: conflicting types for 'data'

C:/Dev-Cpp/include/enet/enet.h:116: error: previous declaration of 'data' was here

C:/Dev-Cpp/include/enet/enet.h:343: error: conflicting types for 'data'

C:/Dev-Cpp/include/enet/enet.h:116: error: previous declaration of 'data' was here

C:/Dev-Cpp/include/enet/enet.h:344: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:345: error: syntax error before '}' token

C:/Dev-Cpp/include/enet/enet.h:393: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:394: error: syntax error before "ENetBuffer"

C:/Dev-Cpp/include/enet/enet.h:421: error: syntax error before "size_t"

C:/Dev-Cpp/include/enet/enet.h:431: error: syntax error before "size_t"

C:/Dev-Cpp/include/enet/enet.h:435: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:435: error: syntax error before "size_t"

C:/Dev-Cpp/include/enet/enet.h:436: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:437: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:438: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:440: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:440: error: syntax error before "size_t"

C:/Dev-Cpp/include/enet/enet.h:441: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:442: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:442: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:443: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:444: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:445: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:446: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:447: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:449: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:450: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:450: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:451: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:452: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:453: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:454: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:455: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:456: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:457: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:458: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:459: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:459: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:460: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:460: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:461: error: syntax error before '*' token

C:/Dev-Cpp/include/enet/enet.h:463: error: syntax error before "enet_protocol_command_size"

host.c:27: error: syntax error before '*' token

host.c:28: error: syntax error before "size_t"

host.c: In function `enet_host_create':

host.c:30: error: `host' undeclared (first use in this function)

host.c:30: error: syntax error before ')' token

host.c:31: error: `currentPeer' undeclared (first use in this function)

host.c:36: error: syntax error before ')' token

host.c:39: error: `address' undeclared (first use in this function)

host.c: At top level:

host.c:88: error: syntax error before '*' token

host.c: In function `enet_host_destroy':

host.c:90: error: `currentPeer' undeclared (first use in this function)

host.c:92: error: `host' undeclared (first use in this function)

host.c: At top level:

host.c:113: error: syntax error before '*' token

host.c:114: error: syntax error before '*' token

host.c: In function `enet_host_connect':

host.c:116: error: `currentPeer' undeclared (first use in this function)

host.c:120: error: `channelCount' undeclared (first use in this function)

host.c:126: error: `host' undeclared (first use in this function)

host.c:138: error: `address' undeclared (first use in this function)

host.c: At top level:

host.c:193: error: syntax error before '*' token

host.c: In function `enet_host_broadcast':

host.c:195: error: `currentPeer' undeclared (first use in this function)

host.c:197: error: `host' undeclared (first use in this function)

host.c:207: error: request for member `referenceCount' in something not a structure or union

host.c: At top level:

host.c:219: error: syntax error before '*' token

host.c: In function `enet_host_bandwidth_limit':

host.c:221: error: `host' undeclared (first use in this function)

host.c: At top level:

host.c:227: error: syntax error before '*' token

host.c: In function `enet_host_bandwidth_throttle':

host.c:230: error: `host' undeclared (first use in this function)

host.c:238: error: `peer' undeclared (first use in this function)

make.exe: *** [host.o] Error 1

Execution terminated
I'm am installing MS Visual C++ and will see if it makes a difference, but if someone can solve this, it will save me some time. Also I'm not too sure if using MS Visual C++ will be of any help. ;)
kind regards,
Josh Langley.

http://www.myspace.com/Langerz
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Tue Jun 26, 2007 2:20 pm

It seems it didn't like precompiled MS headers, and let me tell you by experience that it's a pain to compile MS born stuff under other environments. My suggestion is to get a mingw precompiled version of enet from another source. I hope to be able to upload mine somewhere before the end of the week.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Tue Jun 26, 2007 4:00 pm

Update:

I created a quick package for libenet 1.1 here:

http://elvenprogrammer.themanaworld.org ... et-1.1.zip

It compiles fine, but has not been tested at runtime, feel free to.
JoshLangley
Peon
Peon
Posts: 45
Joined: Sat Jun 23, 2007 6:42 am
Location: Melbourne, Australia

Post by JoshLangley » Tue Jun 26, 2007 4:32 pm

ElvenProgrammer wrote:Update:

I created a quick package for libenet 1.1 here:

http://elvenprogrammer.themanaworld.org ... et-1.1.zip

It compiles fine, but has not been tested at runtime, feel free to.
thanks very much... :)
I have a new problem, but since it's not related to this (or at least I don't think so) I posted it in a new thread.
kind regards,
Josh Langley.

http://www.myspace.com/Langerz
Post Reply