User Profile

Collapse

Profile Sidebar

Collapse
Sir G
Sir G
Last Activity: Jul 17 '12, 09:32 PM
Joined: Sep 11 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sir G
    replied to Base Class Undefined
    in C
    Ok, so I removed a parser for .obj-files from my solution, and that fixed the problem. This is odd, since these are quite unrelated pieces of code.
    See more | Go to post

    Leave a comment:


  • Sir G
    replied to Base Class Undefined
    in C
    This is my console output;

    1>------ Build started: Project: RayTracer, Configuration: Debug Win32 ------
    1>Build started 17/07/2012 20:56:35.
    1>InitializeBui ldStatus:
    1> Touching "Debug\RayTrace r.unsuccessfulb uild".
    1>ClCompile:
    1> All outputs are up-to-date.
    1> OBJParser.cpp
    1>j:\raytracer\ raytracer\geome try.h(14): error C2504: 'Intersectable' : base class...
    See more | Go to post

    Leave a comment:


  • Sir G
    started a topic Base Class Undefined
    in C

    Base Class Undefined

    Hi all, I'm a novice C++ programmer (main language is java). I'm getting a C2504: base class undefined error, and have no idea why. Google told me this happens when the base class is indeed not defined before a class inheriting from the base class is defined, but this does not seem to be the problem here.

    Code:
    #ifndef GEOMETRY
    #define GEOMETRY
    
    #include "stdafx.h"
    #include "Intersectable.h"
    ...
    See more | Go to post

  • Sir G
    replied to Incorrect vector subscript out of range
    in C
    Yes they all were initialized. I have found the problem though. It was a specific concurrency related issue of the program.

    Thanks for all help though
    See more | Go to post

    Leave a comment:


  • Sir G
    started a topic Incorrect vector subscript out of range
    in C

    Incorrect vector subscript out of range

    Hi all,
    I'm working in visual studio 2010. I'm getting a "vector subscript out of range debug assertion check" -error, which I believe is incorrect.

    I have created a minimal example:

    Code:
    int xsize = 4dVector.size();
    int ysize = 4dVector[x].size();
    int zsize = 4dVector[x][y].size();
    int nbelements = 4dVector[x][y][z].size();
    
    	for (uint32_t i = 0; i < 4dVector[x][y][z].size();
    ...
    See more | Go to post

  • Sir G
    replied to Eclipse CDT search entire project for includes
    in C
    I know, but why do I have to specify the subfolders of the project itself? There are quite a lot of them. Can't eclipse search the subfolders of the project on it's own? Do I really have to include all of them manually?
    See more | Go to post

    Leave a comment:


  • Sir G
    started a topic Eclipse CDT search entire project for includes
    in C

    Eclipse CDT search entire project for includes

    Hi all,

    I recently started using eclipse indigo with CDT 8.0 to edit a C++ project. However, whenever i try to build the project it complains that includes cannot be found. The src folder has many subfolders, and some of them have subfolders. The problem apparently is that the compiler does not look in other subfolders for matches for include statements. Since I would rather not edit all include statements to have the full path or...
    See more | Go to post
No activity results to display
Show More
Working...