vittorio wrote:
[...]
SerialPort.C: In function `int main(int, char*)':
SerialPort.C:62: error: invalid conversion from `unsigned char*' to `char*'
SerialPort.C:62: error: initializing argument 1 of `int snprintf(char*,
size_t, const char*, ...)'
SerialPort.C:66: error: `err' undeclared (fir
On Fri, Sep 09, 2005 at 01:53:49PM +0200, vittorio wrote:
>
> As a C++ absolute beginner I'm trying to compile your testssc.c file with
>
> g++ testssc.c -o testssc
> (under freebsd 5.4, gcc version 3.4.2)
The C and C++ languages are different. Use cc or gcc instead of g++ to
compile C code.
Ro
On 2005-09-09 13:53, vittorio <[EMAIL PROTECTED]> wrote:
>
> As a C++ absolute beginner I'm trying to compile your testssc.c file with
>
> g++ testssc.c -o testssc
> (under freebsd 5.4, gcc version 3.4.2)
It's not a C++ program. You should use `cc', not `g++'.
> SerialPort.C: In function `int ma
As a C++ absolute beginner I'm trying to compile your testssc.c file with
g++ testssc.c -o testssc
(under freebsd 5.4, gcc version 3.4.2)
But...
I only get:
SerialPort.C: In function `int main(int, char*)':
SerialPort.C:62: error: invalid conversion from `unsigned char*' to `char*'
SerialPort.C