Search:

Type: Posts; User: Quasar

Search: Search took 0.01 seconds.

  1. Forget it, i'm an idiot... I just realized i...

    Forget it, i'm an idiot...

    I just realized i was defining an inline function within the .cpp file and not the .h file. Moving the function to the correct place solved it.

    Oops...
  2. Unresolved external symbol on used defined namespace

    Hi all!

    I have a bit of a problem and Google isn't helping me :(

    I'm trying to implement a namespace, let's call it test.

    When i code my program like in the example below, it compiles, links...
  3. Replies
    7
    Views
    10,821

    Sorry, missing &. Still the same problem,...

    Sorry, missing &.

    Still the same problem, argh...

    Rebooting the server, maybe that works.
  4. Replies
    7
    Views
    10,821

    It's more complicated that that. I simplified the...

    It's more complicated that that. I simplified the example...

    I'm passing this structure:



    typedef struct { /* Country mutex structure */
    pthread_mutex_t resA, resE, resP,...
  5. Replies
    7
    Views
    10,821

    That's why i think it's a gcc problem, if i move...

    That's why i think it's a gcc problem, if i move the function to it's original place everything works!

    I was wondering if there something lika a -mutex-across-multiple-source-files i should pass...
  6. Replies
    7
    Views
    10,821

    Mutex across multiple source files

    Hi all!

    I'm working on a prog that uses mutexes. Since the code is growing bigger and bigger i decided to split it across multiple C and H files. To my surprise the mutexes stopped working!

    I...
  7. Thread: memcpy problem

    by Quasar
    Replies
    2
    Views
    1,265

    worked! thanks a lot :)

    worked! thanks a lot :)
  8. Thread: memcpy problem

    by Quasar
    Replies
    2
    Views
    1,265

    memcpy problem

    I am trying to create a function to add a new entry to an array of pointers, for example:

    Assuming i have my CameraCircuit structure set like this:



    struct CameraCircuit
    {
    GLdouble...
  9. Replies
    2
    Views
    1,006

    Worked, thnx.

    Worked, thnx.
  10. Replies
    2
    Views
    1,006

    Multi-dimensional Dynamic Arrays

    I'm trying to create a function that converts a custom structure - Spline - to a 2-dimension array of doubles. The problem is that although the function works fine and stores the correct values in...
  11. Replies
    5
    Views
    975

    GLUT wraps up a lot of windows functions, you...

    GLUT wraps up a lot of windows functions, you don't need to set up windows, rendering contexts, drawing contexts, call back functions etc... It does that for you. for example:



    #include...
  12. Replies
    5
    Views
    975

    OpenGL only draws the scene when you teel it to,...

    OpenGL only draws the scene when you teel it to, so you don't have that problem.

    You can user gultSwapBuffers(); if you are working with GLUT or SwapBuffers(hdc); to render the scene (assuming you...
  13. all solved, it's perfect now, thnx for the help.

    all solved, it's perfect now, thnx for the help.
  14. Replies
    15
    Views
    2,027

    try this, kinda dumb but it works: #include...

    try this, kinda dumb but it works:


    #include <iostream.h>
    #include <stdio.h>
    int main() //Most important part of the program!
    {
    int age; //Need a variable...
    cout<<"Please input...
  15. Thread: pausing

    by Quasar
    Replies
    7
    Views
    1,065

    what about Sleep() ?

    what about Sleep() ?
  16. Replies
    5
    Views
    975

    it is possible, you just need to define the...

    it is possible, you just need to define the relative position of the center of the shield model (for example) from the center of you body model. then use something like:



    glPushMatrix();
    ...
  17. Replies
    14
    Views
    47,056

    char * buffer; //buffer to store file...

    char * buffer; //buffer to store file contents
    long size; //file size
    ifstream file (filename, ios::in|ios::binary|ios::ate); //open file in binary mode, get pointer at the end of the...
  18. Another version of ProcessTextureMapsList, again...

    Another version of ProcessTextureMapsList, again it doesn't work because buffer isn't initialized, however if i initialize it i must make it match the size of the string it is going to read, so that...
  19. Help with file reading/dynamic memory allocation

    Hi there, i never worked with dynamic memory allocation in C++, that is the new and delete. I'm creating an open GL based graphics engine and i need to read files with deep exploration structure,...
Results 1 to 19 of 19