Perforce Public Knowledge Base - Error: symbol __iob was undefined
Reset Search
 

 

Article

Error: symbol __iob was undefined

« Go Back

Information

 
Problem

When linking the Perforce C++ API using Visual Studio 2005, you receive the following error:

symbol __iob was undefined

 


Solution

To fix this error, obtain a version of the Perforce C++ API that was built using Visual Studio 2005. Versions of the Perforce C++ API have been built using Visual Studio 2005 since 2007.2.

A workaround for earlier versions of the Perforce C++ API is to add the following if/def to <p4api>/include/p4/stdhdrs.h:

#if _MSC_VER >= 1400
#include 
extern "C" { FILE _iob[3] = {__iob_func()[0], __iob_func()[1], __iob_func()[2]}; }

#endif
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255