#119113 - ikaris - Mon Feb 19, 2007 9:15 pm
Inside my "sources" folder, I have several folders, each containing different elements, for example:
sources\fzBase (all includes)
sources\fzAnim (for animation, such as containers for animation data, etc...)
sources\fzGfx (graphics functions, mostly for rendering)
sources\fzMath (math classes)
sources\fzMesh (containing and building mesh data)
etc...
I have another folder for utilities:
sources\fzUtils
Inside this folder, at the moment I have two things:
string functions (fzString.h)
and
my own single linked list class (fzSLList.h)
I am using my string functions all over the place in my project, without any problems.
However, when I start using my list class, I get this error at compile:
Clearly, it's not being found at link time.
Originally, I thought perhaps my sources\fzUtils folder is not in the Makefile... however, here's the line from my Makefile that has ALWAYS worked before... remember, my string stuff, which works, is in the same folder as the list:
Any ideas what I could be doing wrong ?
This only broke when I started using the list class... before I was using vector, and I wanted to replace that with the list instead.
I imagine it's because my string stuff is just functions and not a class, and my list is a class... (However, I am using lots of other classes, specifically in fzMath for vectors and matrices, without any problems...)
I am using Visual Studio 2005.
Thanks !
sources\fzBase (all includes)
sources\fzAnim (for animation, such as containers for animation data, etc...)
sources\fzGfx (graphics functions, mostly for rendering)
sources\fzMath (math classes)
sources\fzMesh (containing and building mesh data)
etc...
I have another folder for utilities:
sources\fzUtils
Inside this folder, at the moment I have two things:
string functions (fzString.h)
and
my own single linked list class (fzSLList.h)
I am using my string functions all over the place in my project, without any problems.
However, when I start using my list class, I get this error at compile:
Code: |
1>linking fzEngine.elf 1>fzBuildMesh.o: In function `fzBuildMesh(unsigned char*, fzMesh&)': 1>c:/Projects/fuze/fzEngine/sources/fzMesh/fzBuildMesh.cpp(30): undefined reference to `fzSLList<fzVec3>::Add(fzVec3)' 1>c:/Projects/fuze/fzEngine/sources/fzMesh/fzBuildMesh.cpp(33): undefined reference to `fzSLList<fzColor>::Add(fzColor)' 1>c:/Projects/fuze/fzEngine/sources/fzMesh/fzBuildMesh.cpp(36): undefined reference to `fzSLList<fzTexCoord>::Add(fzTexCoord)' 1>c:/Projects/fuze/fzEngine/sources/fzMesh/fzBuildMesh.cpp(39): undefined reference to `fzSLList<fzVec3>::Add(fzVec3)' |
Clearly, it's not being found at link time.
Originally, I thought perhaps my sources\fzUtils folder is not in the Makefile... however, here's the line from my Makefile that has ALWAYS worked before... remember, my string stuff, which works, is in the same folder as the list:
Code: |
SOURCES := sources/fzMath sources/fzUtils sources/fzMesh sources/fzMaterial sources/fzAnim sources/fzObject sources/fzPrimitives sources/fzGfx sources/fzBase sources/fzGame |
Any ideas what I could be doing wrong ?
This only broke when I started using the list class... before I was using vector, and I wanted to replace that with the list instead.
I imagine it's because my string stuff is just functions and not a class, and my list is a class... (However, I am using lots of other classes, specifically in fzMath for vectors and matrices, without any problems...)
I am using Visual Studio 2005.
Thanks !