• ### Popular Now

• 13
• 18
• 19
• 27
• 10

#### Archived

This topic is now archived and is closed to further replies.

This topic is 5243 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, I would like to use osmesa for offscreen rendering. I wrote a little test programm but got 3 errors: error LNK2001: unresolved external symbol _OSMesaDestroyContext error LNK2001: unresolved external symbol _OSMesaMakeCurrent error LNK2001: unresolved external symbol _OSMesaCreateContextExt I am using msvc6 and in the project settings I specify in the "Link"-tab under "Object/Library modules": osmesa.lib (with the correct path). So what am I doing wrong? Sorry if this is a pretty stupid/simple question. Also I was not sure whether I should post it in another forum since it is not directly related to openGL. Thanks

##### Share on other sites
quote:
Original post by Floating
Hi,

I would like to use osmesa for offscreen rendering. I wrote a little test programm but got 3 errors:

error LNK2001: unresolved external symbol _OSMesaDestroyContext
error LNK2001: unresolved external symbol _OSMesaMakeCurrent
error LNK2001: unresolved external symbol _OSMesaCreateContextExt

I am using msvc6 and in the project settings I specify in the "Link"-tab under "Object/Library modules": osmesa.lib (with the correct path).

So what am I doing wrong?
Sorry if this is a pretty stupid/simple question. Also I was not sure whether I should post it in another forum since it is not directly related to openGL.

Thanks

try

#pragma comment(lib,"osmesa.lib")

in your main include file(the one that has or whatever)

##### Share on other sites
Thank you fireking,

I tried that but same result...

##### Share on other sites
Try doing this:

extern "C"{ #include "osmesa.h" //Or whatever it might happen to be}

Should work, with any luck.