Fixed c/c++ linking (patch by Aaron Digulla)

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@30 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
mezhirov 2007-04-13 17:43:37 +00:00
parent 6da5fdb8d0
commit a9045a20e2
4 changed files with 24 additions and 20 deletions

View File

@ -148,7 +148,7 @@ EXTERN double_VAR (test_pt_x, 99999.99, "xcoord");
EXTERN double_VAR (test_pt_y, 99999.99, "ycoord");
extern int MatcherDebugLevel;
extern int display_ratings;
extern "C" { extern int display_ratings; }
extern int number_debug;
extern int adjust_debug;
/*

View File

@ -20,8 +20,10 @@
#include "host.h"
#include "notdll.h" //must be last include
extern int optind;
extern char *optarg;
extern "C" {
extern int optind;
extern char *optarg;
}
int getopt ( //parse args
INT32 argc, //arg count

View File

@ -43,8 +43,10 @@ extern int acts[MAXPROC]; /*action flags */
extern int debugs[MAXPROC]; /*debug flags */
extern int plots[MAXPROC]; /*plot flags */
extern int corners[4]; /*corners of scan window */
extern int optind; /*option index */
extern char *optarg; /*option argument */
extern "C" {
extern int optind; /*option index */
extern char *optarg; /*option argument */
}
/*image file name */
extern char imagefile[FILENAMESIZE];
/* main directory */

View File

@ -34,24 +34,24 @@ extern int debug_3;
extern int debug_5;
extern int debug_8;
extern FILE *rawfile; /* Text before dictionary */
extern FILE *textfile; /* Text output file */
extern FILE *correct_fp; //correct text
extern FILE *rawfile; /* Text before dictionary */
extern FILE *textfile; /* Text output file */
extern FILE *correct_fp; //correct text
extern FILE *matcher_fp;
extern int blob_skip; /* Skip to next selection */
extern int num_word_choices; /* How many words to keep */
extern int similarity_enable; /* Switch for Similarity */
extern int similarity_debug; /* Level of debug output */
extern int write_raw_output; /* Text before context */
extern int write_output; /* Text file output */
extern int display_ratings; /* Show the ratings */
extern int show_bold; /* Use bold text */
extern int display_text; /* Show word text */
extern int display_blocks; /* Show word as boxes */
extern int blob_skip; /* Skip to next selection */
extern int num_word_choices; /* How many words to keep */
extern int similarity_enable; /* Switch for Similarity */
extern int similarity_debug; /* Level of debug output */
extern int write_raw_output; /* Text before context */
extern int write_output; /* Text file output */
extern "C" { extern int display_ratings; } /* Show the ratings */
extern int show_bold; /* Use bold text */
extern int display_text; /* Show word text */
extern int display_blocks; /* Show word as boxes */
extern float overlap_threshold; /* Overlap Threshold */
extern float certainty_threshold;/* When to quit looking */
extern float overlap_threshold; /* Overlap Threshold */
extern float certainty_threshold; /* When to quit looking */
/*----------------------------------------------------------------------
F u n c t i o n s