#### Archived

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

This topic is 5149 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.

##### Share on other sites
Thank you, but that didn''t help either...
Is it possible that something is wrong with my osmesa.lib file? I created it from the source files, maybe I did something wrong?
However if I search that file for the strings _OSMesaDestroyContext, _OSMesaMakeCurrent and _OSMesaCreateContextExt, I can find them!

• ### Forum Statistics

• Total Topics
628710
• Total Posts
2984333

• 23
• 11
• 9
• 13
• 14