ts-7000
[Top] [All Lists]

Re: Re: [ts-7000] compiler cpp files

To: <>
Subject: Re: Re: [ts-7000] compiler cpp files
From: salva g <>
Date: Thu, 29 Oct 2009 13:46:49 +0100


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!

__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU