Sources in subfolders

Discussion in 'Wii - Emulation and Homebrew' started by diego_pmc, Nov 8, 2009.

Nov 8, 2009

Sources in subfolders by diego_pmc at 2:18 PM (496 Views / 0 Likes) 1 replies

  1. diego_pmc
    OP

    Newcomer diego_pmc Advanced Member

    Joined:
    Sep 8, 2009
    Messages:
    52
    Country:
    United States
    Hello, I'm using the latest version, r19, and I am having some problems on compilation.
    I want to use GRRLIB and I decided it would be better if instead of installing it in the compiler's include folder, I would just keep the only functions I need in my project and store the source of GRRLIB in the same place as the rest of my source code.

    So my file tree looks like this:
    • Risen.pnproj
    • Makefile
    • sources
      • main.cpp
      • config.h
      • config.cpp
      • (etc.)
      • GRRLIB
        • grrlib.h
        • GRRLIB_render.c
        • (etc.)
    When I try to compile it tells me that I have undefined references to the GRRLIB functions I am using, which I guess means it cannot find the source files where they are defined. But if I move all the header and source files of GRRLIB in the "sources" folder, these problems disappear.

    Could someone please help me with this? Here's my project. I currently have two GRRLIB functions at the beginning main(); they are there for testing, I do not intend to leave them there. Also "gfx" folder and its contents are from Sand Traps, also for testing.
     
  2. diego_pmc
    OP

    Newcomer diego_pmc Advanced Member

    Joined:
    Sep 8, 2009
    Messages:
    52
    Country:
    United States
    Nevermind. I decided to install it anyway.
     

Share This Page