aucnzn / tesseractdotnet

Automatically exported from code.google.com/p/tesseractdotnet
0 stars 0 forks source link

Can't compile the tesseractengine3.DLL #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.  Followed Steps outlined in the Wiki

What is the expected output? What do you see instead?

Expected compilation of DLL. Fails with one error

"error C2061: syntax error : identifier 'FILE'"
"d:\tesseract-ocr\api\baseapi.h 134"

What version of the product are you using? On what operating system?
VS2008, 32 bit Vista.

Please provide any additional information below.

After making the changes to the tesseract project

Configuration Type: Dynamic Library (.dll) Common Language Runtime Support: Old 
Syntax (/clr:oldSyntax) 
Output File: tesseractengine3.dll
Also need to add System, System.Drawing assembly 

tesseractengine3.dll DOES compile

After adding in the tesseractenginewrapper.h and tesseractenginewrapper.cpp 
files , the project will not compile

Original issue reported on code.google.com by ro...@rovr1.com on 2 Mar 2011 at 3:15

GoogleCodeExporter commented 8 years ago
Including #include "allheaders.h" before #include "..\api\baseapi.h" in 
tesseractenginewrapper.h fixed this.

Original comment by congnguy...@gmail.com on 2 Mar 2011 at 4:44

GoogleCodeExporter commented 8 years ago
Yep that took care of it, thanks

Original comment by ro...@rovr1.com on 2 Mar 2011 at 5:25

GoogleCodeExporter commented 8 years ago

Original comment by congnguy...@gmail.com on 3 Mar 2011 at 12:55