LiquidPirate's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
1 (0 per day)
Joined:
20-June 11
Profile Views:
107
Last Active:
User is offline Jun 24 2011 11:14 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   LiquidPirate has not set their status

Posts I've Made

  1. In Topic: C++ Tile Engine from Scratch -- Part 2

    Posted 21 Jun 2011

    Hey, I have been having problems with this tutorial from the start, and have finally come across something that I can't figure out how to fix,

    1>------ Build started: Project: Dead Pixel, Configuration: Debug Win32 ------
    1>  Tile.cpp
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\tile.cpp(5): error C2533: 'Tile::{ctor}' : constructors not allowed a return type
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\tile.cpp(16): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\tile.cpp(16): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
    1>  Main.cpp
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C2143: syntax error : missing ';' before '<'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C2238: unexpected token(s) preceding ';'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.h(9): error C2236: unexpected 'class' 'Engine'. Did you forget a ';'?
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.h(9): error C2143: syntax error : missing ';' before '{'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.h(9): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\main.cpp(7): error C2065: 'Engine' : undeclared identifier
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\main.cpp(7): error C2065: 'engine' : undeclared identifier
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\main.cpp(7): error C2061: syntax error : identifier 'Engine'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\main.cpp(11): error C2065: 'engine' : undeclared identifier
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\main.cpp(11): error C2227: left of '->Go' must point to class/struct/union/generic type
    1>          type is ''unknown-type''
    1>  ImageManager.cpp
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C2143: syntax error : missing ';' before '<'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C2238: unexpected token(s) preceding ';'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.cpp(6): error C2533: 'ImageManager::{ctor}' : constructors not allowed a return type
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.cpp(17): error C2065: 'imageList' : undeclared identifier
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.cpp(17): error C2228: left of '.push_back' must have class/struct/union
    1>          type is ''unknown-type''
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.cpp(22): error C2065: 'imageList' : undeclared identifier
    1>  Engine.cpp
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C2143: syntax error : missing ';' before '<'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.h(10): error C2238: unexpected token(s) preceding ';'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.h(9): error C2236: unexpected 'class' 'Engine'. Did you forget a ';'?
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.h(9): error C2143: syntax error : missing ';' before '{'
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.h(9): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.cpp(17): error C2065: 'imageList' : undeclared identifier
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.cpp(17): error C2228: left of '.push_back' must have class/struct/union
    1>          type is ''unknown-type''
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\imagemanager.cpp(22): error C2065: 'imageList' : undeclared identifier
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.cpp(6): error C2653: 'Engine' : is not a class or namespace name
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.cpp(7): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.cpp(9): warning C4508: 'Engine' : function should return a value; 'void' return type assumed
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.cpp(11): error C2653: 'Engine' : is not a class or namespace name
    1>c:\dead weight\2d tile engine\dead pixel\dead pixel\engine.cpp(11): fatal error C1903: unable to recover from previous error(s); stopping compilation
    1>  Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    


    Sorry I'm not sure if you are suppost to post your error logs here or not, but I am really unsure weather I have to fix each probablem individally or it is one thing that could be creating loads of errors? Maybe something to do with the SFML not linking correctly? again sorry for asking but if you do have some time to point me in the right direction it would help a awfull lot, thanks

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

LiquidPirate hasn't added any friends yet.

Comments

LiquidPirate has no profile comments yet. Why not say hello?