All pastes #190068 Raw Edit

Something

public text v1 · immutable
·published 2006-10-03 17:55 UTC
rendered paste body
#include <iostream>
#include <fstream>
#include "SDLsidekick.h"
#include "Bomber_menu.h"

int main( int argc, char* args[] )
{
  
  //Init function
  if (init_SDL() == 1)
    return 1;
    
  Timer fps;
  int frame = 0;  
  
  //Loads start screen and prints it on screen
  background = load_image("Startscreen.bmp");
  apply_surface( 0, 0, background, screen);
  
  while (quit == false)    
  {
    //fps set up
    fps.start();
    frame++;
    while( fps.get_ticks() < 1000 / FRAMES_PER_SECOND )
    {
           //Update the screen
      SDL_Flip( screen );
    }
      
    if( SDL_PollEvent( &event ) )
    {     //Checks if user wants to quit
      switch (event.type)
      { 
        case SDL_QUIT: 
        {
          quit = true;
          break;
        }
        case SDL_KEYDOWN:
        {
          switch( event.key.keysym.sym )
          {
            case SDLK_SPACE: menu(); break;
          }
        }
      ///////////////////////////////////
      }   
    }
  }
  return 0;
} 
 


C:\Documents and Settings\Guest\Desktop\Bomberman\main.o(.text+0xd) In function `ZSt3minIjERKT_S2_S2_': 
  [Linker error] undefined reference to `std::string::size() const'
  [Linker error] undefined reference to `std::string::operator[](unsigned int) const' 
  [Linker error] undefined reference to `std::string::operator[](unsigned int) const' 
  [Linker error] undefined reference to `std::string::operator[](unsigned int) const' 
 C:\Documents and Settings\Guest\Desktop\Bomberman\main.o(.text+0x4dc) In function `Z8load_mapPc': 
  [Linker error] undefined reference to `__gxx_personality_sj0' 
  [Linker error] undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream()' 
  [Linker error] undefined reference to `std::istream::getline(char*, int, char)' 
  [Linker error] undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()' 
 C:\Documents and Settings\Guest\Desktop\Bomberman\main.o(.text+0xb0d) In function `Z41__static_initialization_and_destruction_0ii': 
  [Linker error] undefined reference to `std::ios_base::Init::Init()' 
  [Linker error] undefined reference to `std::ios_base::Init::~Init()' 
 C:\Documents and Settings\Guest\Desktop\Bomberman\main.o(.text+0xb0d) ld returned 1 exit status 
 C:\Documents and Settings\Guest\Desktop\Bomberman\Makefile.win [Build Error]  [Bomberman.exe] Error 1