Announcement

Collapse
No announcement yet.

COMPILE: Linux Port

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I've been trying something new all day...compiling CtP2 for linux (I'm using linux mint helena, which is based on ubuntu karmic/9.10

    I checked out the linux branch via http://ctp2.darkdust.net/anonsvn/branches/linux/

    make bootstrap didn't appear to give me any issues
    ./configure didn't appear to give me any issues

    but make goes quite a bit before giving me this:

    Code:
    make[5]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/3rdparty'
    Making all in linux
    make[5]: Entering directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux'
    Making all in dp
    make[6]: Entering directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux/dp'
    /bin/bash ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../h  -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5  -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5 -DUNIX -Dcdecl="" -D__NO_ANONYMOUS_UNIONS__ "-DPACK=__attribute ((packed))" -Dstrnicmp=strncasecmp -Dstricmp=strcasecmp -Ddp_ANET2 -DCOMM_INST -DNDEBUG -O3 -Werror -g -O2 -MT libdp2_la-aehmap.lo -MD -MP -MF .deps/libdp2_la-aehmap.Tpo -c -o libdp2_la-aehmap.lo `test -f '../../aeh/aehmap.c' || echo './'`../../aeh/aehmap.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../h -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5 -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5 -DUNIX -Dcdecl= -D__NO_ANONYMOUS_UNIONS__ "-DPACK=__attribute ((packed))" -Dstrnicmp=strncasecmp -Dstricmp=strcasecmp -Ddp_ANET2 -DCOMM_INST -DNDEBUG -O3 -Werror -g -O2 -MT libdp2_la-aehmap.lo -MD -MP -MF .deps/libdp2_la-aehmap.Tpo -c ../../aeh/aehmap.c  -fPIC -DPIC -o .libs/libdp2_la-aehmap.o
    cc1: warnings being treated as errors
    ../../aeh/aehmap.c: In function ‘aeh_map_Load’:
    ../../aeh/aehmap.c:261: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    ../../aeh/aehmap.c:281: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    ../../aeh/aehmap.c:285: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    make[6]: *** [libdp2_la-aehmap.lo] Error 1
    make[6]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux/dp'
    make[5]: *** [all-recursive] Error 1
    make[5]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux'
    make[4]: *** [all-recursive] Error 1
    make[4]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code'
    make: *** [all-recursive] Error 1
    I can't even really find the error (other than it seems to be treating a warning as an error for some reason), so I don't even know what to do to fix it.
    ---

    Comment


    • just commited a possible fix; i hope svn update and make will compile it, then
      good luck!
      Last edited by ctplinuxfan; April 26, 2010, 15:22.

      Comment


      • That let me get a little further, but now there's another issue.

        Code:
        make[5]: Entering directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux'
        Making all in dp
        make[6]: Entering directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux/dp'
        /bin/bash ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../h  -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5  -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5 -DUNIX -Dcdecl="" -D__NO_ANONYMOUS_UNIONS__ "-DPACK=__attribute ((packed))" -Dstrnicmp=strncasecmp -Dstricmp=strcasecmp -Ddp_ANET2 -DCOMM_INST -DNDEBUG -D_PROFILE -O3 -pg -Werror -g -O2 -MT libdp2p_la-logpkt.lo -MD -MP -MF .deps/libdp2p_la-logpkt.Tpo -c -o libdp2p_la-logpkt.lo `test -f '../../../demo/utils/logpkt.c' || echo './'`../../../demo/utils/logpkt.c
        libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../h -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5 -I. -I../../../src -I../../../h -I../../../src/aeh -I../../../demo/utils -I../../../3rdparty/d3des -I../../../3rdparty/md5 -DUNIX -Dcdecl= -D__NO_ANONYMOUS_UNIONS__ "-DPACK=__attribute ((packed))" -Dstrnicmp=strncasecmp -Dstricmp=strcasecmp -Ddp_ANET2 -DCOMM_INST -DNDEBUG -D_PROFILE -O3 -pg -Werror -g -O2 -MT libdp2p_la-logpkt.lo -MD -MP -MF .deps/libdp2p_la-logpkt.Tpo -c ../../../demo/utils/logpkt.c  -fPIC -DPIC -o .libs/libdp2p_la-logpkt.o
        cc1: warnings being treated as errors
        ../../../demo/utils/logpkt.c: In function ‘logPkt’:
        ../../../demo/utils/logpkt.c:158: error: format ‘%10d’ expects type ‘int’, but argument 4 has type ‘clock_t’
        ../../../demo/utils/logpkt.c:158: error: format ‘%2d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’
        make[6]: *** [libdp2p_la-logpkt.lo] Error 1
        make[6]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux/dp'
        make[5]: *** [all-recursive] Error 1
        make[5]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src/linux'
        make[4]: *** [all-recursive] Error 1
        make[4]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/src'
        make[3]: *** [all-recursive] Error 1
        make[3]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet'
        make[2]: *** [all-recursive] Error 1
        make[2]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code'
        make: *** [all-recursive] Error 1
        ---

        Comment


        • just commited some changes, hope this fixes your problem. please try svn update and make again.

          Comment


          • That fixed some things...but still, there's a bit more.

            Code:
            Making all in demo
            make[4]: Entering directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/demo'
            Making all in gtest
            make[5]: Entering directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/demo/gtest'
            gcc -DHAVE_CONFIG_H -I. -I../../h  -I. -I../../h -I../../demo/utils  -I. -I../../h -I../../demo/utils -DUNIX -Dcdecl="" "-D__NO_ANONYMOUS_UNIONS__" "-DPACK=__attribute__ ((packed))" -Dstrnicmp=strncasecmp -Dstricmp=strcasecmp -Ddp_ANET2 -DNDEBUG -O3 -Werror -g -O2 -MT gtest-gtest.o -MD -MP -MF .deps/gtest-gtest.Tpo -c -o gtest-gtest.o `test -f 'gtest.c' || echo './'`gtest.c
            cc1: warnings being treated as errors
            gtest.c: In function ‘listServersEx_cb’:
            gtest.c:801: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
            gtest.c:803: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
            gtest.c: In function ‘listPlayers_cb’:
            gtest.c:863: error: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
            gtest.c: In function ‘listPlayersEx_cb’:
            gtest.c:897: error: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
            gtest.c: In function ‘ping_callback’:
            gtest.c:1164: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
            gtest.c: In function ‘processChatCommand’:
            gtest.c:1717: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘clock_t’
            gtest.c:1721: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘clock_t’
            gtest.c:1740: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
            gtest.c:1774: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘clock_t’
            gtest.c:1777: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘clock_t’
            gtest.c:1853: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘comm_status_t’
            gtest.c:1866: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘playerHdl_t’
            gtest.c:1882: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘playerHdl_t’
            gtest.c:1886: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘playerHdl_t’
            gtest.c:1897: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘playerHdl_t’
            gtest.c:1962: error: format ‘%d’ expects type ‘int’, but argument 4 has type ‘playerHdl_t’
            gtest.c:1967: error: format ‘%d’ expects type ‘int’, but argument 5 has type ‘playerHdl_t’
            gtest.c: In function ‘gtest’:
            gtest.c:3798: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘playerHdl_t’
            gtest.c:3949: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘dp_uid_t’
            gtest.c:3955: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘dp_uid_t’
            gtest.c:3961: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘dp_uid_t’
            make[5]: *** [gtest-gtest.o] Error 1
            make[5]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/demo/gtest'
            make[4]: *** [all-recursive] Error 1
            make[4]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet/demo'
            make[3]: *** [all-recursive] Error 1
            make[3]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs/anet'
            make[2]: *** [all-recursive] Error 1
            make[2]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code/libs'
            make[1]: *** [all-recursive] Error 1
            make[1]: Leaving directory `/home/andrewspriggs/CTP2/ctp2_code'
            make: *** [all-recursive] Error 1
            I don't quite get it (but that's an understatement). Since others have been compiling this fine, why would there be so much to change now? Are these all basically distro-specific errors? And if that is the case, then wouldn't committing revisions break things for other distros?

            Also, isn't anet for multiplayer? If I don't plan on mp, then is there a way to "skip" all of the compiling related to it and just have a singleplayer experience? Or would that be even worse to try to change?
            ---

            Comment


            • Just commited a temporary change, that anet will be compilwed without -Werror. Please svn update and start compiling from bootstrapping again. This should work for now. Good luck!

              Originally posted by Andrewspriggs View Post
              I don't quite get it (but that's an understatement). Since others have been compiling this fine, why would there be so much to change now? Are these all basically distro-specific errors?
              Yes, it's dependent on which warnings are enabled in the distro's gcc package, since some distros use a patched gcc rather than the gnu vanilla gcc.

              And if that is the case, then wouldn't committing revisions break things for other distros?
              No, it doesn't break things for other distros. If it would break things, dependent code could be used to fix distro-specific issues.

              Also, isn't anet for multiplayer? If I don't plan on mp, then is there a way to "skip" all of the compiling related to it and just have a singleplayer experience? Or would that be even worse to try to change?
              Yes, anet is for multiplayer. But compiling without anet is not supported.

              Comment


              • OK, so I forgot to copy the relevant error message...

                But I know that at one point it said that the file ~/CTP2/ctp2_code/ui/ldl/ldl_file.cpp had an incorrect switch from const char* to char* at line 41, so I went into that file, added "const" before char, and that let it compile further.

                I did not commit the changes because I didn't really think that would work, and plus I'm a n00b anyway. Yet, it did let me compile more...so if there needs to be a commit, then that's that.

                From there, I just had to get libttf from an older version of freetype...and now...it seems like...everything has compiled...

                Apparently though, I didn't get something...

                I'm all the way down to trying to launch the game...but then I get...
                Code:
                /mnt/SharedStuff/CTP2/ctp2_program/ctp $ ./ctp2 fullscreen
                ./ctp2: error while loading shared libraries: libttf.so.2: cannot open shared object file: No such file or directory
                hmm.
                ---

                Comment


                • Originally posted by Andrewspriggs View Post
                  I'm all the way down to trying to launch the game...but then I get...
                  Code:
                  /mnt/SharedStuff/CTP2/ctp2_program/ctp $ ./ctp2 fullscreen
                  ./ctp2: error while loading shared libraries: libttf.so.2: cannot open shared object file: No such file or directory
                  You need freetype 1.x and its developement files to be installed, these are missing on your system. Please install the freetype 1 library and its developement files.

                  Comment


                  • OK, so it turned out the freetype1 package that I had gotten didn't install everything, so I found a package that just had libttf.so.2

                    So, at least things kinda...started.

                    with a black screen, I could see the little familiar pointer hand thing.

                    But nothing else.

                    A lot of database errors popped up, but I clicked through all of them.

                    Code:
                    Messagebox(DB Error): UNIT_BUILD_LIST_NAVAL_SPECIAL not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_SPECIAL_SCIENTIST not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_NAVAL_SPECIAL not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): Wonders (Sci.) not found in BuildListSequence database
                    
                    Continue?
                    Messagebox(DB Error): Wonders (Mil.) not found in BuildListSequence database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_SPECIAL_ECONOMIC not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_NAVAL_SPECIAL not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): Wonders (Econ.) not found in BuildListSequence database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_SPECIAL_ECOTOPIAN not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_NAVAL_SPECIAL not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): Wonders (Ecot.) not found in BuildListSequence database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_SPECIAL_DIPLOMATIC not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): UNIT_BUILD_LIST_NAVAL_SPECIAL not found in UnitBuildList database
                    
                    Continue?
                    Messagebox(DB Error): Wonders (Dipl.) not found in BuildListSequence database
                    
                    Continue?
                    But then I had a black screen and i couldn't do anything with it. So I had to ctr-alt-backspace to restart X.

                    I tried loading the game again, but this time, instead of using the fullscreen option, I used the nointromovieoption. I still got all of those DB errors, but at least it let me see the menu.

                    It says "2004-07-26" for the Apolyton edition though, which I am not sure if that's supposed to be the case...

                    I can try to start a new game, it'll say, "Make sure the CD is in." But it won't do anything despite the CD being in there. I guess I should note that I had a problem moving texture.dat. texture.dat doesn't exist on my CD, so I copied and pasted it from a preexisting installation (the one I use when I'm playing in Windows) over to the linux installation location.

                    Anyway, the game has to be forced quit there.

                    I suppose I probably missed some instruction somewhere...
                    ---

                    Comment


                    • OK, so I deleted everything and started from scratch.

                      The only error that persisted was the line 41 char to const char thing that I wrote about in a previous post and which I fixed on my own.

                      I found texture.dat (it's in a different location than the README.linux says...it actually is in /media/cdrom/Setup/data/Add/ctp2_program/ctp/texture.dat . I guess that should've been an easy one to troubleshoot).

                      Running the game doesn't give a flurry of DB errors this time, so great success there!

                      However, I guess I'll have to look through the thread about the sound issues (there is none [EDIT: ran things a second time...and there are sound effects. So random.)...and I just tried a little something...queueing up a few units for production and then switching over to the buildings tab. When I tried to switch to the building tab, I got:

                      Code:
                      Messagebox(Targa Load Error): Unable to find the file 'CM2_UPIP031L.rim'
                      
                      Continue?
                      Messagebox(Targa Load Error): Unable to find the file 'CM2_UPIP031L.rim'
                      
                      Continue?
                      Messagebox(Targa Load Error): Unable to find the file 'CM2_UPIP031L.rim'
                      
                      Continue?
                      couldn't go further from there, so had to ctrl+c out. I guess this is no longer a compile issue though, right?

                      In the end, I think I'll have to stick with the windows version because it's up-to-date though.
                      ---

                      Comment


                      • hi,
                        I'm trying to compile ctp2, and make failed on this error :
                        Code:
                        gcc -DHAVE_CONFIG_H -I. -I../../../ctp2_code/os/include  -I../../../ctp2_code/os/nowin32 -I../../../ctp2_code/os/include -I../../../ctp2_code/ctp/ctp2_utils   -Wall -Wno-unused-variable -fms-extensions -fmessage-length=0 -g  -MT lex.yydb.o -MD -MP -MF .deps/lex.yydb.Tpo -c -o lex.yydb.o lex.yydb.c
                        lex.yydb.c:1320: attention : ‘yyunput’ defined but not used
                        lex.yydb.c:1363: attention : ‘input’ defined but not used
                        mv -f .deps/lex.yydb.Tpo .deps/lex.yydb.Po
                        /bin/bash ../../../libtool --tag=CXX   --mode=link g++  -Wall -Wno-unused-variable -fms-extensions -fmessage-length=0 -frtti -fexceptions -g    -o ctpdb Datum.o MemberClass.o RecordDescription.o ctpdb.o ydb.tab.o lex.yydb.o  
                        libtool: link: g++ -Wall -Wno-unused-variable -fms-extensions -fmessage-length=0 -frtti -fexceptions -g -o ctpdb Datum.o MemberClass.o RecordDescription.o ctpdb.o ydb.tab.o lex.yydb.o 
                        lex.yydb.o: In function `yydblex':
                        /home/lui/ctp2_source/ctp2_code/gs/dbgen/ctpdb.l:31: undefined reference to `yydblval'
                        /home/lui/ctp2_source/ctp2_code/gs/dbgen/ctpdb.l:36: undefined reference to `yydblval'
                        /home/lui/ctp2_source/ctp2_code/gs/dbgen/ctpdb.l:37: undefined reference to `yydblval'
                        /home/lui/ctp2_source/ctp2_code/gs/dbgen/ctpdb.l:37: undefined reference to `yydblval'
                        /home/lui/ctp2_source/ctp2_code/gs/dbgen/ctpdb.l:41: undefined reference to `yydblval'
                        lex.yydb.o:/home/lui/ctp2_source/ctp2_code/gs/dbgen/ctpdb.l:45: more undefined references to `yydblval' follow
                        collect2: ld returned 1 exit status
                        make[3]: *** [ctpdb] Erreur 1
                        make[3]: quittant le répertoire « /home/lui/ctp2_source/ctp2_code/gs/dbgen »
                        make[2]: *** [all-recursive] Erreur 1
                        make[2]: quittant le répertoire « /home/lui/ctp2_source/ctp2_code/gs »
                        make[1]: *** [all-recursive] Erreur 1
                        make[1]: quittant le répertoire « /home/lui/ctp2_source/ctp2_code »
                        make: *** [all-recursive] Erreur 1

                        I'm trying to compile it on linux mint.
                        Can you help me ?
                        Thanks

                        Comment


                        • As I compiled in Ubuntu 10.04:

                          Code:
                          mkdir ~/ctp2
                          svn co [url]http://ctp2.darkdust.net/anonsvn/branches/linux[/url] ~/ctp2
                          cd ~/ctp2
                          
                          #libttf-dev does not enter any more into repositories... add old
                          sudo bash -c "cat > /etc/apt/sources.list.d/jaunty.list << EOF
                          deb [url]http://archive.ubuntu.com/ubuntu[/url] jaunty universe multiverse
                          deb [url]http://archive.ubuntu.com/ubuntu[/url] jaunty-updates multiverse universe
                          deb [url]http://archive.ubuntu.com/ubuntu[/url] jaunty-security universe multiverse
                          EOF"
                          
                          sudo apt-get update
                          sudo apt-get install byacc flex gnome-devel libsdl-image1.2-dev \
                          libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libttf-dev
                          
                          make bootstrap
                          ./configure --prefix=$HOME/ctp2bin --bindir=$HOME/ctp2bin/ctp2_program/ctp
                          make
                          make install
                          Further as it is described in the 'doc/README.linux'.
                          But easier to use not manual unpacking, and installation through wine. The script fix_data_names.sh not full, therefore is better to use a vfat-file.
                          If language of yours locale is not present in the list supported (as Russian ) to start game it will be necessary:
                          LC_ALL="C" ./ctp2

                          Known bugs:
                          1) in the window of diplomacy. Declaration of war leads to the departure.
                          2) in the box, tactical information on orders. double click on the unit leads to the departure.
                          3) is not a bug, but ... sometimes one press of the button does not work (to close the message to press esc twice).
                          4) descriptions of land in the library shifted. The forest is described as a beach ...

                          P.S.
                          I almost forgot. After running "svn co", in the file ctp2_code/ui/ldl/ldl_file.cpp, at 41 line add "const" befor "char".
                          Last edited by rdf; July 1, 2010, 11:41.

                          Comment


                          • hi rdf,
                            thanks for your reply.
                            I follow your post and i have the same error :
                            Code:
                            /home/lui/ctp2/ctp2_code/gs/dbgen/ctpdb.l:31: undefined reference to `yydblval'
                            /home/lui/ctp2/ctp2_code/gs/dbgen/ctpdb.l:36: undefined reference to `yydblval'
                            /home/lui/ctp2/ctp2_code/gs/dbgen/ctpdb.l:37: undefined reference to `yydblval'
                            /home/lui/ctp2/ctp2_code/gs/dbgen/ctpdb.l:37: undefined reference to `yydblval'
                            /home/lui/ctp2/ctp2_code/gs/dbgen/ctpdb.l:41: undefined reference to `yydblval'
                            lex.yydb.o:/home/lui/ctp2/ctp2_code/gs/dbgen/ctpdb.l:45: more undefined references to `yydblval' follow
                            yydblval is refered in ydb.tab.h and ctpdb.l , Ydb.tab.h is included in ctpdb.l file
                            I don't understand why the compiler doesn't find reference of yydblval.

                            thanks for your helps, and sorrry for my bad english

                            Comment


                            • Hi sylvain121.
                              Which branch do you use? I used branches/linux (with the other I did not work).

                              Comment


                              • hi rdf,
                                I have reinstall ubuntu 10.04 and follow your method.
                                Now I have no problem to compile.

                                Thank for your help

                                Comment

                                Working...
                                X