Interface.c&main.c errors

  • mniip
    29th Jan 2012 Developer 0 Permalink
    I've updated my sourcce to latest, and after compiling i get these:

    (i've already tried deleting .o files)

    Linking executable: bin\Release\Powder.exe
    obj\Release\src\elementdata.o:elementdata.c:(.data+0xc90): undefined reference to `update_BRMT'
    obj\Release\src\interface.o:interface.c:(.text+0x5afe): undefined reference to `build_thumb'
    obj\Release\src\interface.o:interface.c:(.text+0xd861): undefined reference to `build_save'
    obj\Release\src\interface.o:interface.c:(.text+0xd87c): undefined reference to `build_thumb'
    obj\Release\src\interface.o:interface.c:(.text+0xf46b): undefined reference to `parse_save'
    obj\Release\src\interface.o:interface.c:(.text+0xf596): undefined reference to `prerender_save'
    obj\Release\src\interface.o:interface.c:(.text+0x18d47): undefined reference to `build_save'
    obj\Release\src\interface.o:interface.c:(.text+0x18d78): undefined reference to `prerender_save'
    obj\Release\src\interface.o:interface.c:(.text+0x19eb2): undefined reference to `prerender_save'
    obj\Release\src\interface.o:interface.c:(.text+0x1a1c5): undefined reference to `parse_save'
    obj\Release\src\main.o:main.c:(.text+0x8d1): undefined reference to `prerender_save'
    obj\Release\src\main.o:main.c:(.text+0xa28): undefined reference to `build_save'
    obj\Release\src\main.o:main.c:(.text+0x16fa): undefined reference to `parse_save'
    obj\Release\src\main.o:main.c:(.text+0x31a3): undefined reference to `parse_save'
    obj\Release\src\main.o:main.c:(.text+0x4325): undefined reference to `parse_save'
    obj\Release\src\main.o:main.c:(.text+0x4cd4): undefined reference to `prerender_save'
    obj\Release\src\main.o:main.c:(.text+0x567a): undefined reference to `prerender_save'
    obj\Release\src\main.o:main.c:(.text+0x6a09): undefined reference to `transform_save'
    obj\Release\src\main.o:main.c:(.text+0x6a60): undefined reference to `prerender_save'
    obj\Release\src\main.o:main.c:(.text+0x74ad): undefined reference to `build_save'
    obj\Release\src\main.o:main.c:(.text+0x756c): undefined reference to `build_save'

    whats up?
  • Simon
    29th Jan 2012 Administrator 0 Permalink
    Looks like you're not compiling or linking save.c/h, do you have it in your includes for interface.c and main.c?
  • abczyx123987
    29th Jan 2012 Member 0 Permalink
    If you're using Code::Blocks to compile, can you make sure save.c and save.h are in the project?
    It also looks like brmt.c isn't getting compiled either.
    Try right-clicking the project, then click "add files..." and add save.c, save.h, and brmt.c, then try recompiling and see how it goes.
  • mniip
    29th Jan 2012 Developer 0 Permalink
    Same thing...