View Single Post
Old 09-05-06, 06:54 AM   #1
sdima135
Registered User
 
Join Date: Sep 2006
Posts: 4
Default x86_64-1.0-8774 GL.so loading problem

I have problem with 64 bit NV drivers.
I've compiled same simple program on 32 & 64 bit plathform & get crash with 64 bit in libGL.so
so it very simple program:

#include <iostream.h>
#include <iomanip.h>
#include <GL/gl.h>
using namespace std;
#define PRINT(x) cout<<""<<setw(15)<<(x)<<" " #x "\n"<<flush

void* test1(void*)
{
PRINT("Test1");
glGetError();
PRINT("Test2");
return (void*)NULL;
};

int main()
{
void *res;
pthread_t m_thread_handle;

PRINT(glGetError());

pthread_create(&m_thread_handle,NULL,&test1,(void* )NULL);
sleep(1);
pthread_join(m_thread_handle,&res);

PRINT(glGetError());
return 0;
}
// command time
//g++ test.cpp -lGL -lpthread -o gltest; ./gltest
sdima135 is offline   Reply With Quote