Menu

Linking error of sounds.c and windows.c

Help
2008-06-22
2013-03-22
  • Nobody/Anonymous

    hi,

    i compiled the latest source code and got error messages below:

    C:\Dev-Cpp\project\noegnud_trunk\nethack\src>mingw32-make -f Makefile.gcc instal
    l
    Linking....
    o/sounds.o:sounds.c:(.text+0x28cf): undefined reference to `play_usersound'
    o/windows.o:windows.c:(.data+0x8): undefined reference to `noegnud_procs'
    collect2: ld returned 1 exit status
    mingw32-make: *** [../binary/NetHackW.exe] Error 1

    play_usersound/noegnud is external fucntion/struct from noegnud_interface.c

    i tried to include noegnud_interface.c in sounds.c but got another intesively syntax errors

    how can i build it!?

    can anyone help me solve this problem?

    appriciate for your help :>

     
    • Nobody/Anonymous

      hi,
      i found that i set GRAPHICS to Y
      so the noegunud mode won't be built :p
      then i set GRAPHICS to N and successfully built NethackW.exe
      but i got another problem
      that is the sound doesn't play in game
      anyone knows where the sound being put
      thanks for your help

      Kuan-Po

       

Log in to post a comment.