Yes, that is the cpp file, then as you said I have to compile with g++ but I have an error in all the lines of FedISCCore.h file #include <stdlib.h> #include "FedmIscCore.h" #include "Fecom.h" // STL - Standard Template Library using namespace std;
int main(void) { int iBack = 0; // FECOM part***************** int iPortNo = 1; //COM1 unsigned char BusAdr = 0xFF; FEDM_ISCReaderModule* pReader = NULL;
iBack = FECOM_DetectPort(iPortNo);//Check if Port is physically present if (iBack != 0) { system("./tolcd Error No se abrir el puerto"); // Puerto no disponible return -1; } else // Puerto detectado: seguir { //FEDM part********************************************************* pReader = new FEDM_ISCReaderModule; iBack = pReader->ConnectCOMM(iPortNo); // Automaticalle adjust COM-Port Parameters or set manually //iBack = pReader->FindBaudRate(); // Takes some time... // do it manually ... much faster iBack = pReader->SetPortPara("Baud", "38400"); iBack = pReader->SetPortPara("Frame", "8E1");
// option: set bus address manual.................
............etc...
but during building, I have an error in all the lines of FedISCCore.h file. This is the error f:/SDnuevo/devel-tools/crosstool-win/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/include/core/i_scan/FEDM_ISCReaderConfig.h:1386: error: stray '\' in program
It repeates in all the file. I don't know really how to compile this program.
salva g wrote:
>
>
> Hi all,
> I'm making my first c++ project and trying to compile with Eclipse in
> the 7800. Because the files are now cpp I have to do some changes in
> Eclipse project properties:
> The c compiler was *arm-none-linux-gnueabi-gcc.exe* for C projects,
> with option *-O0 -g3 -Wall -c -fmessage-length=0*, but for cpp
> projects what should be the configuration? I think
> /arm-none-linux-gnueabi-cpp.exe/ or /arm-none-linux-gnueabi-c++.exe/
> but I'm not sure and also don't know what options to put.
> Please anyone can give me information for this issue
> Thanks in advance
> Salva
>
cpp -> "C Pre Processor" (not what you want).
normally one would use g++; so arm-none-linux-gnueabi-g++.exe.
If that fails, try c++.
-bms
Entra al Nuevo Canal Motor y descubre por qué los coches más rápidos sólo aparcan en MSN. Nuevo diseño, más completo y abierto a tu opinión. ¡Nuevo Canal Motor!
__._,_.___
__,_._,___
|
|