Unbekannter Typ name namespace

Derzeit arbeite ich an Android native code. Ich habe Accessorries.h

Accessories.h
#ifndef _ACCESSORIES_H_
#define _ACCESSORIES_H_
#define ANDROID    1
#include <string>
#include <opencv2/contrib/detection_based_tracker.hpp>
using namespace std;
using namespace cv;


#ifdef __cplusplus
extern "C" {
#endif

#define RETURN_OK  0
#define RETURN_MEMORY_ERROR 1
#define RETURN_PROCESS_ERROR  2
#define FACESIZE   0.2
#define WIDTH      400
#define HEIGHT     300

typedef struct{
     int col;
     int row;
     int width;
     int height;
}loc_rects;

typedef struct{

     int numofppl;
     int camera_idx;
     unsigned char *frame;//image buffer
     loc_rects *locs;
}container;

typedef struct{
   int ctrl;
   string frontxml;
   string profilexml;
}processParam;


typedef struct{
    DetectionBasedTracker::Parameters DetectorParams;
    DetectionBasedTracker front;
    DetectionBasedTracker profile;
}detectors;

#ifdef __cplusplus
}
#endif
#endif

Dass Accessories.h ist enthalten in Detection.h & Detection.cpp und camera.c.
Ich habe eine Menge Fehler-für unknown type name namespace.
Ich benutze ndk-build für die Erstellung der native code.
Was könnte falsch sein?
Ich habe Pfad und Symbole Einstellung wie im angehängten Bild.
Ich habe die gleiche Einstellung für GNU C und GNU C++.Unbekannter Typ name namespace

BEARBEITEN:
Dies ist einer der Fehler

C:/ndk/sources/cxx-stl/gnu-libstdc++/4.6/include/bits
/stl_vector.h:65:1: error: unknown type name 'namespace'
C:/ndk/sources/cxx-stl/gnu-libstdc++/4.6/include/bits
/stl_vector.h:66:1: error: expected ',' or ';' before '{' token
In file included from C:/ndk/sources/cxx-stl/gnu-libs
tdc++/4.6/include/vector:66:0,
                 from C:/Count//jni/include/opencv2/contrib/
detection_based_tracker.hpp:8,
                 from C:/Count//jni/Accessories.h:5,
                 from C:/Count//jni/FaceDetection.h:3,
                 from C:/Count//jni/com_astralink_orcas_api_

Dank

  • hii Könnte Sie fügen die genaue Fehlermeldung
  • Nein, ich gehören zu einer Entdeckung.h und Kamera.c nur.
  • OK, do u bekommen den Fehler mit so etwas wie asm ; ; ; ; ; redefinition was found here
  • ja, ich habe diese ebenfalls
InformationsquelleAutor batuman | 2014-07-23
Schreibe einen Kommentar