win32 codeblocks compile error

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
civa_Hg
Peon
Peon
Posts: 7
Joined: Tue Mar 20, 2007 3:28 pm

win32 codeblocks compile error

Post by civa_Hg » Tue Mar 20, 2007 3:37 pm

i downloaded source code and devpack file. i install it.

code blocks cant compile the source code.

i got tooooooooooooooooooooo many errors.

can anyone try to compile manaworld at win32 with codeblocks.

compiler:mingw32
program:code::blocks
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Tue Mar 20, 2007 6:11 pm

I am using codeblocks and it compiles fine. Unfortunately I can't help you as long as you don't state:

-What you are trying to compile (eAthena client, TMWServ client, TMWServ)
-What errors exactly you get
  • 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.
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: Wed Sep 08, 2004 8:48 pm
Location: Espoo, Finland

Post by Rotonen » Wed Mar 21, 2007 10:36 am

Yeah code::blocks works fine for me too, so I (too) would say that it's a configuration error by you. So what errors does it throw at you?
This message used to be meaningful.
civa_Hg
Peon
Peon
Posts: 7
Joined: Tue Mar 20, 2007 3:28 pm

tmw-0.0.22.2

Post by civa_Hg » Wed Mar 21, 2007 4:15 pm

i downloaded tmw-0.0.22.2.tar.gz (simple client release)

i extract the tmw devpak to code::blocks

first i get DWORD error.

i fix it. (i added window.h)

and then

i get "undefined referenced to ....." error.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Wed Mar 21, 2007 4:36 pm

Undefined reference to what?

Please just post the complete compile log. We can't help you when you don't give us any information.
  • 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.
civa_Hg
Peon
Peon
Posts: 7
Joined: Tue Mar 20, 2007 3:28 pm

error

Post by civa_Hg » Wed Mar 21, 2007 6:36 pm

.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x181): undefined reference to `adler32'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x19d): undefined reference to `adler32'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x3f1a): undefined reference to `_imp__curl_easy_init'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x3f81): undefined reference to `_imp__curl_easy_setopt'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x3f9e): undefined reference to `_imp__curl_easy_setopt'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x3fba): undefined reference to `_imp__curl_easy_setopt'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x408a): undefined reference to `_imp__curl_easy_setopt'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x40a7): undefined reference to `_imp__curl_easy_setopt'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x40d3): more undefined references to `_imp__curl_easy_setopt' follow
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x4194): undefined reference to `_imp__curl_easy_perform'
.objs\gui\updatewindow.o:updatewindow.cpp:(.text+0x42fb): undefined reference to `_imp__curl_easy_cleanup'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x19f): undefined reference to `png_create_write_struct'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x1d4): undefined reference to `png_create_info_struct'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x1f0): undefined reference to `png_destroy_write_struct'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x233): undefined reference to `png_destroy_write_struct'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x275): undefined reference to `png_init_io'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x2e4): undefined reference to `png_set_IHDR'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x2f6): undefined reference to `png_write_info'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x301): undefined reference to `png_set_packing'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x388): undefined reference to `png_write_image'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x39a): undefined reference to `png_write_end'
.objs\resources\imagewriter.o:imagewriter.cpp:(.text+0x3c9): undefined reference to `png_destroy_write_struct'
.objs\resources\mapreader.o:mapreader.cpp:(.text+0x16c): undefined reference to `inflateInit2_'
.objs\resources\mapreader.o:mapreader.cpp:(.text+0x191): undefined reference to `inflateEnd'
.objs\resources\mapreader.o:mapreader.cpp:(.text+0x1b0): undefined reference to `inflate'
.objs\resources\mapreader.o:mapreader.cpp:(.text+0x201): undefined reference to `inflateEnd'
.objs\resources\mapreader.o:mapreader.cpp:(.text+0x240): undefined reference to `inflateEnd'
.objs\resources\mapreader.o:mapreader.cpp:(.text+0x2a7): undefined reference to `inflateEnd'
C:\Program Files\CodeBlocks\bin\lib\libphysfs.a(zip.lo): In function `ZIP_read':
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:299: undefined reference to `inflate'
C:\Program Files\CodeBlocks\bin\lib\libphysfs.a(zip.lo): In function `ZIP_seek':
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:364: undefined reference to `inflateInit2_'
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:370: undefined reference to `inflateEnd'
C:\Program Files\CodeBlocks\bin\lib\libphysfs.a(zip.lo): In function `ZIP_fileClose':
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:406: undefined reference to `inflateEnd'
C:\Program Files\CodeBlocks\bin\lib\libphysfs.a(zip.lo): In function `zip_resolve':
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:736: undefined reference to `inflateInit2_'
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:738: undefined reference to `inflate'
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:739: undefined reference to `inflateEnd'
C:\Program Files\CodeBlocks\bin\lib\libphysfs.a(zip.lo): In function `ZIP_openRead':
C:/msys/1.0/home/Administrator/physfs-1.0.1/archivers/zip.c:1409: undefined reference to `inflateInit2_'
collect2: ld returned 1 exit status
Process terminated with status 1 (1 minutes, 37 seconds)
8 errors, 0 warnings
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Wed Mar 21, 2007 9:15 pm

The following libraries don't seem to be installed properly:

zlib
curl
SDLImage
  • 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.
civa_Hg
Peon
Peon
Posts: 7
Joined: Tue Mar 20, 2007 3:28 pm

thanks

Post by civa_Hg » Thu Mar 22, 2007 2:38 pm

Yessss, work. Thanks for answer (very quick :) ).

Now I'll compile server source.
Post Reply