C++ die datei quelle kann nicht geöffnet werden: errno.h.

I am using C++/CLI for the first time. I am trying to include a DLL into my project (JtToolkit-Library). The Library is only usable in x64. Now I want to create a C++/CLI project which uses this DLL. And a C# Project which uses the C++/CLI assembly.

My problem is that when I include my headers from the DLL, I get the error: "E1696: C++ Die Datei "Quelle" kann nicht geöffnet werden: "JtTk/JtkCADExporter.h"." (E1696: cannot open source file)

When I change the the build configuration to x86, the error goes away and It will find the Header, but can not link with the library, because the library is x64.

I have no idea what is cauing the problem. Is it plausible my C++/CLI template is only working in x86? How can I include the DLL into the project with C++/CLI?

I tried to compile again under windows with cmake-gui and the Visual Studio 2013 generator. CMake gives me the following output:

JPSCORE_VERSION: 0.5.0 BUILD_TESTING: OFF PROCESSOR_COUNT: 8 CMAKE_BUILD_TYPE: Release CMAKE_BINARY_DIR: C:/Users/Oliver/Documents CMAKE_SOURCE_DIR: C:/Users/Oliver/Documents/jpscore Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) Checking for C++11 compiler - unavailable Performing Test COMPILER_SUPPORTS_CXX11 Performing Test COMPILER_SUPPORTS_CXX11 - Failed Performing Test COMPILER_SUPPORTS_CXX0X Performing Test COMPILER_SUPPORTS_CXX0X - Failed The compiler C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe has no C++11 support. Please use a different C++ compiler. Release flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /openmp , /MD /O2 /Ob2 /D NDEBUG Configuring done

It says there is no c++11 support. However there is. After generating the files i opened the solution file (*.sln) for visual studio. If i try to gernate this solution there are a total of 19 errors and 120 warnings. I post the errors. Most of them occur because of header files which are not found.

Fehler 1 error C1083: Datei (Include) kann nicht geöffnet werden: "bits/random.h": No such file or directory c:\users\oliver\documents\jpscore\routing\GlobalRouter.h 40 1 Fehler 2 error C1083: Datei (Include) kann nicht geöffnet werden: "getopt.h": No such file or directory C:\Users\Oliver\Documents\jpscore\general\ArgumentParser.cpp 28 1 Fehler 3 error C1083: Datei (Include) kann nicht geöffnet werden: "bits/random.h": No such file or directory c:\users\oliver\documents\jpscore\routing\GlobalRouter.h 40 1 Fehler 90 error C3016: "p": Die Indexvariable in der For-Anweisung von OpenMP muss einen ganzzahligen Typ mit Vorzeichen aufweisen. C:\Users\Oliver\Documents\jpscore\math\GPU_GCFMModel.cpp 546 1 Fehler 91 error C3016: "p": Die Indexvariable in der For-Anweisung von OpenMP muss einen ganzzahligen Typ mit Vorzeichen aufweisen. C:\Users\Oliver\Documents\jpscore\math\GPU_GCFMModel.cpp 588 1 Fehler 92 error C3016: "p": Die Indexvariable in der For-Anweisung von OpenMP muss einen ganzzahligen Typ mit Vorzeichen aufweisen. C:\Users\Oliver\Documents\jpscore\math\GPU_GCFMModel.cpp 822 1 Fehler 93 error C3016: "p": Die Indexvariable in der For-Anweisung von OpenMP muss einen ganzzahligen Typ mit Vorzeichen aufweisen. C:\Users\Oliver\Documents\jpscore\math\GPU_GCFMModel.cpp 837 1 Fehler 94 error C3016: "p": Die Indexvariable in der For-Anweisung von OpenMP muss einen ganzzahligen Typ mit Vorzeichen aufweisen. C:\Users\Oliver\Documents\jpscore\math\GPU_GCFMModel.cpp 877 1 Fehler 95 error C3016: "p": Die Indexvariable in der For-Anweisung von OpenMP muss einen ganzzahligen Typ mit Vorzeichen aufweisen. C:\Users\Oliver\Documents\jpscore\math\GPU_GCFMModel.cpp 928 1 Fehler 120 error C1083: Datei (Include) kann nicht geöffnet werden: "bits/random.h": No such file or directory c:\users\oliver\documents\jpscore\routing\GlobalRouter.h 40 1 Fehler 121 error C1083: Datei (Include) kann nicht geöffnet werden: "bits/random.h": No such file or directory c:\users\oliver\documents\jpscore\routing\GlobalRouter.h 40 1 Fehler 122 error C1083: Datei (Include) kann nicht geöffnet werden: "bits/random.h": No such file or directory c:\users\oliver\documents\jpscore\routing\GlobalRouter.h 40 1 Fehler 123 error C1083: Datei (Include) kann nicht geöffnet werden: "bits/random.h": No such file or directory c:\users\oliver\documents\jpscore\routing\GlobalRouter.h 40 1 Fehler 134 error C1083: Datei (Include) kann nicht geöffnet werden: "bits/random.h": No such file or directory c:\users\oliver\documents\jpscore\routing\GlobalRouter.h 40 1 135 IntelliSense: Die Datei "Quelle" kann nicht geöffnet werden: "getopt.h". c:\Users\Oliver\Documents\jpscore\general\ArgumentParser.cpp 28 1 core 136 IntelliSense: Die Datei "Quelle" kann nicht geöffnet werden: "unistd.h". c:\Users\Oliver\Documents\jpscore\general\ArgumentParser.cpp 29 1 core 137 IntelliSense: Die Datei "Quelle" kann nicht geöffnet werden: "bits/random.h". c:\Users\Oliver\Documents\jpscore\routing\GlobalRouter.h 40 1 core

Hi, ich wollte greade ein kleines Programm in C++ machen, habe conio.h mit #include <conio.h> hinzugefügt und wollte die Funktion clrscr() verwenden, das geht aber irgendwie nicht... Hab ich da was falsch gemacht ? Ich benutze Visual Studio 19

2 Antworten

Vom Fragesteller als hilfreich ausgezeichnet

Community-Experte

Computer, Programmieren, Informatik

Community-Experte

Programmieren

Du könntest

system("clear");  // Für Windows system("cls");

versuchen. Dann solltest du <conio.h> nicht mehr brauchen.

Woher ich das weiß:Studium / Ausbildung – Informatikstudent

Was möchtest Du wissen?

Toplist

Neuester Beitrag

Stichworte