The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
include header file
07-20-2007, 05:16 AM,
#1
include header file
I have included an header file (and two global variables) into vamosworld.h to control a virtual reality helmet.
Code:
#ifndef _VAMOSWORLD_H

using namespace std;

#include "font.h"
.....
#include "ai.h"
#include "trackmap.h"

#include "isense.h"  // Virtual Reality Helmet
//Virtual Reality Helmet variable
ISD_TRACKER_HANDLE trackerHandle;
ISD_TRACKER_DATA_TYPE   trackerData;
.....
I need to use these variables and some functions of the helmet into the files vamosworld.cpp and gui.cpp.
When i try to compile, the compiler don't tell me nothing but the linker give to me a lot of errors like:
"multiple definition of trackerHandle" or "multiple definition of trackerData" (the variables that i have defined).
"undefined references to ISD_OpenTracker" (a function of the helmet library).
Why if i have made the definitions into the #ifndef _VAMOSWORLD_H and vamosworld.h is included into vamosworld.cpp and gui.cpp ?
Down here there's a screenshot of a part of the errors:
http://vdrift.net/Gallery/media.php?f=0&...2002141515
Reply


Messages In This Thread
include header file - by mpo - 07-20-2007, 05:16 AM
[No subject] - by joevenzon_phpbb2_import3 - 07-20-2007, 11:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)