sdl problem

This is a discussion on sdl problem within the Game Programming forums, part of the General Programming Boards category; My problem is that i get these three linking errors, or i presume to be linking errors which are .objs\Tetris.o:Tetris.cpp ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    New York
    Posts
    121

    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..
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    673
    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.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    New York
    Posts
    121
    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.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Location
    New York
    Posts
    121

    Back agian lol

    says that every time the member are used is a non class type
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with SDL
    By Mirchiss in forum Game Programming
    Replies: 1
    Last Post: 07-16-2006, 01:03 PM
  2. SDL Performance problem
    By cboard_member in forum Game Programming
    Replies: 8
    Last Post: 04-09-2006, 01:23 PM
  3. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 05:24 PM
  4. SDL problem
    By ElastoManiac in forum Game Programming
    Replies: 11
    Last Post: 01-11-2006, 01:45 AM
  5. Replies: 5
    Last Post: 11-07-2005, 10:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21