-
sdl problem
My problem is that i get these three linking errors, or i presume to be linking errors which are
.objs\Tetris.o:Tetris.cpp:(.bss+0x0): multiple definition of `Tetris'
.objs\main.o:main.cpp:(.bss+0x0): first defined here
.objs\Tetris.o:Tetris.cpp:(.text+0x80f): undefined reference to `RemoveRow()'
My project was just to do a little simple tetris program to see to learn about game programming with SDL.Thou my program is a bit rushed, i sitll manage to takem ost of the obvious errors defected by the compiler..
-
first of all do not declare a type of TETRIS in the header. declare it in main.cpp and if you need it in the other use the extern keyword. are you use C++ or C? If you use C++ let me know and ill find the source to my basic game engine layout so you can see how it works.
-
thanks, It was really in c because i really wanted to pratice the use of handling process with out it revoling aroudn the data. Something really away from Data -driven , thou it looks like most of the functions has to work around Tetris. I did find the error after i posted from noting pointing to the same problem ,but yea it really was meant to be a c program.
-
Back agian lol
says that every time the member are used is a non class type