porting problem
From: gabo (_gabo_at_despammed.com)
Date: 06/04/04
- Next message: Chuck Dillon: "Re: porting problem"
- Previous message: Barry Margolin: "Re: forking wait3"
- Next in thread: Chuck Dillon: "Re: porting problem"
- Reply: Chuck Dillon: "Re: porting problem"
- Reply: Paul Pluzhnikov: "Re: porting problem"
- Reply: Paul F. Johnson: "Re: porting problem"
- Reply: gabo: "Re: porting problem"
- Reply: gabo: "Re: porting problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Jun 2004 05:19:54 -0700
Hi,
I'm Gabo, from Italy. First of all sorry for my English, it's so
bad...
I'm trying to compile a FTP client (wrote following all the C++
standard) in 3 different system: a RedHat, a netBSD and a
sparc-SUN-Solaris...
The code is always the same, but the errors no :((
On the RedHat system I compile without errors (I wrote my code on that
system), follows the output (whith the compiler version)
[gabo@linuxGabo gabo]$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
[gabo@linuxGabo gabo]$ g++ -Wno-deprecated Socket.cpp control.cpp
data.cpp user_interface.cpp main.cpp -o MyFtp
[gabo@linuxGabo gabo]$
On the SUN computer (the one I need to compile, because I'm coding for
my university) I get this output (and errors...)
goofy<7>>g++ -v
Reading specs from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/opt/gnu
--disable-nls --enable-languages=c,c++ --enable-threads=posix
--enable-version-specific-runtime-libs --enable-shared
sparc-sun-solaris2.9
Thread model: posix
gcc version 3.3.2
goofy<6>>make
g++ -Wno-deprecated control.cpp data.cpp user_interface.cpp Socket.cpp
main.cpp -o MyFtp
Undefined first referenced
symbol in file
recv /var/tmp//ccXNM17p.o
__xnet_connect /var/tmp//ccVm0eC9.o
__xnet_socket /var/tmp//ccVm0eC9.o
inet_addr /var/tmp//ccVm0eC9.o
inet_ntoa /var/tmp//ccFfaZew.o
send /var/tmp//ccVm0eC9.o
ld: fatal: Symbol referencing errors. No output written to MyFtp
collect2: ld returned 1 exit status
make: *** [source] Error 1
What does it means?
And now I show you my result on the netBSD system:
BSDGabo: {22}g++ -v
Using builtin specs.
gcc version 2.95.3 20010315 (release) (NetBSD nb3)
BSDGabo: {23} make
g++ -Wno-deprecated Socket.cpp control.cpp data.cpp user_interface.cpp
main.cpp -o MyFtp
In file included from ftp_headers.h:43,
from Socket.cpp:18:
Socket.h:29: syntax error before `;'
Socket.h:30: syntax error before `;'
Socket.h:37: parse error before `='
Socket.h:46: `string' was not declared in this scope
Socket.h:47: `string' was not declared in this scope
Socket.h:47: parse error before `)'
Socket.h:47: ANSI C++ forbids initialization of member `sending'
Socket.h:47: making `sending' static
Socket.h:47: ANSI C++ forbids in-class initialization of non-const
static member `sending'
Socket.h:47: declaration of `int Socket::sending'
Socket.h:46: conflicts with previous declaration `int Socket::sending'
Socket.h:49: syntax error before `('
Socket.h:47: duplicate member `Socket::sending'
In file included from user_interface.h:24,
from ftp_headers.h:44,
from Socket.cpp:18:
control.h:25: parse error before `='
control.h:28: syntax error before `('
In file included from user_interface.h:25,
from ftp_headers.h:44,
from Socket.cpp:18:
data.h:26: parse error before `ipaddress'
data.h:29: `string' was not declared in this scope
data.h:29: parse error before `)'
data.h:34: `string' was not declared in this scope
data.h:34: parse error before `)'
In file included from ftp_headers.h:44,
from Socket.cpp:18:
user_interface.h:41: syntax error before `;'
user_interface.h:44: syntax error before `;'
user_interface.h:45: syntax error before `;'
user_interface.h:46: syntax error before `;'
user_interface.h:53: `string' was not declared in this scope
user_interface.h:53: variable or field `setCmd' declared void
user_interface.h:58: syntax error before `('
user_interface.h:71: parse error before `='
Socket.cpp:20: parse error before `ipaddress'
Socket.cpp:23: ANSI C++ forbids declaration `rcvd' with no type
Socket.cpp:25: syntax error before `('
Socket.cpp:26: syntax error before `('
Socket.cpp:27: syntax error before `.'
Socket.cpp:28: syntax error before `.'
Socket.cpp:30: syntax error before `.'
Socket.cpp:31: syntax error before `.'
Socket.cpp:32: syntax error before `.'
Socket.cpp:33: invalid use of member `Socket::addr'
Socket.cpp:33: ANSI C++ forbids declaration `memset' with no type
Socket.cpp:33: `int memset' redeclared as different kind of symbol
/usr/include/string.h:57: previous declaration of `void * memset(void
*, int, unsigned int)'
Socket.cpp:33: initializer list being treated as compound expression
Socket.cpp:35: parse error before `if'
Socket.cpp:38: ANSI C++ forbids declaration `exit' with no type
Socket.cpp:38: `int exit' redeclared as different kind of symbol
/usr/include/stdlib.h:116: previous declaration of `void exit(int)'
Socket.cpp:39: parse error before `}'
Socket.cpp:60: `string' was not declared in this scope
Socket.cpp:60: parse error before `)'
Socket.cpp:61: no `int Socket::sending(...)' member function declared
in class `Socket'
Socket.cpp:61: declaration of `int Socket::sending(...)'
Socket.h:46: conflicts with previous declaration `int Socket::sending'
Socket.cpp: In method `int Socket::sending(...)':
Socket.cpp:62: `snd_buf' undeclared (first use this function)
Socket.cpp:62: (Each undeclared identifier is reported only once
Socket.cpp:62: for each function it appears in.)
Socket.cpp:62: `input' undeclared (first use this function)
Socket.cpp:67: implicit declaration of function `int perror(...)'
Socket.cpp: At top level:
Socket.cpp:75: parse error before `,'
Socket.cpp:76: redefinition of `int Socket::sending(...)'
Socket.cpp:61: `int Socket::sending(...)' previously defined here
Socket.cpp: In method `int Socket::sending(...)':
Socket.cpp:77: `oob' undeclared (first use this function)
Socket.cpp: At top level:
Socket.cpp:93: syntax error before `::'
Socket.cpp:96: ANSI C++ forbids declaration `tmp' with no type
Socket.cpp:96: initialization to `int' from `char *' lacks a cast
Socket.cpp:97: ANSI C++ forbids declaration `tmp' with no type
Socket.cpp:97: redefinition of `int tmp'
Socket.cpp:96: `int tmp' previously defined here
Socket.cpp:97: `memset' cannot be used as a function
Socket.cpp:98: ANSI C++ forbids declaration `rcvd' with no type
Socket.cpp:98: redefinition of `int rcvd'
Socket.cpp:23: `int rcvd' previously defined here
Socket.cpp:98: invalid use of member `Socket::desc'
Socket.cpp:99: invalid use of member `Socket::rcvd'
Socket.cpp:99: ANSI C++ forbids declaration `rcv_buf' with no type
Socket.cpp:99: assignment (not initialization) in declaration
Socket.cpp:100: ANSI C++ forbids declaration `rcv_buf' with no type
Socket.cpp:101: ANSI C++ forbids declaration `tmp' with no type
Socket.cpp:101: redefinition of `int tmp'
Socket.cpp:97: `int tmp' previously defined here
Socket.cpp:101: `memset' cannot be used as a function
Socket.cpp:103: parse error before `if'
Socket.cpp:106: ANSI C++ forbids declaration `exit' with no type
Socket.cpp:106: redefinition of `int exit'
Socket.cpp:38: `int exit' previously defined here
Socket.cpp:107: parse error before `}'
In file included from ftp_headers.h:43,
from control.cpp:18:
Socket.h:29: syntax error before `;'
Socket.h:30: syntax error before `;'
Socket.h:37: parse error before `='
Socket.h:46: `string' was not declared in this scope
Socket.h:47: `string' was not declared in this scope
Socket.h:47: parse error before `)'
Socket.h:47: ANSI C++ forbids initialization of member `sending'
Socket.h:47: making `sending' static
Socket.h:47: ANSI C++ forbids in-class initialization of non-const
static member `sending'
Socket.h:47: declaration of `int Socket::sending'
Socket.h:46: conflicts with previous declaration `int Socket::sending'
Socket.h:49: syntax error before `('
Socket.h:47: duplicate member `Socket::sending'
In file included from user_interface.h:24,
from ftp_headers.h:44,
from control.cpp:18:
control.h:25: parse error before `='
control.h:28: syntax error before `('
In file included from user_interface.h:25,
from ftp_headers.h:44,
from control.cpp:18:
data.h:26: parse error before `ipaddress'
data.h:29: `string' was not declared in this scope
data.h:29: parse error before `)'
data.h:34: `string' was not declared in this scope
data.h:34: parse error before `)'
In file included from ftp_headers.h:44,
from control.cpp:18:
user_interface.h:41: syntax error before `;'
user_interface.h:44: syntax error before `;'
user_interface.h:45: syntax error before `;'
user_interface.h:46: syntax error before `;'
user_interface.h:53: `string' was not declared in this scope
user_interface.h:53: variable or field `setCmd' declared void
user_interface.h:58: syntax error before `('
user_interface.h:71: parse error before `='
control.cpp:20: parse error before `ipaddress'
control.cpp:29: syntax error before `::'
control.cpp:32: ANSI C++ forbids declaration `tmp' with no type
control.cpp:32: initialization to `int' from `char *' lacks a cast
control.cpp:33: ANSI C++ forbids declaration `tmp' with no type
control.cpp:33: redefinition of `int tmp'
control.cpp:32: `int tmp' previously defined here
control.cpp:33: passing `int' to argument 1 of `memset(void *, int,
unsigned int)' lacks a cast
control.cpp:33: initialization to `int' from `char *' lacks a cast
control.cpp:33: multiple initializations given for `tmp'
control.cpp:34: ANSI C++ forbids declaration `rcvd' with no type
control.cpp:34: invalid use of member `Socket::desc'
control.cpp:35: invalid use of member `Socket::rcvd'
control.cpp:35: ANSI C++ forbids declaration `rcv_buf' with no type
control.cpp:35: assignment (not initialization) in declaration
control.cpp:36: ANSI C++ forbids declaration `rcv_buf' with no type
control.cpp:38: parse error before `if'
control.cpp:41: ANSI C++ forbids declaration `exit' with no type
control.cpp:41: `int exit' redeclared as different kind of symbol
/usr/include/stdlib.h:116: previous declaration of `void exit(int)'
control.cpp:42: parse error before `}'
control.cpp:47: ANSI C++ forbids declaration `exit' with no type
control.cpp:47: redefinition of `int exit'
control.cpp:41: `int exit' previously defined here
control.cpp:48: parse error before `}'
control.cpp:50: syntax error before `<'
control.cpp:52: syntax error before `('
control.cpp:57: ANSI C++ forbids declaration `tmp' with no type
control.cpp:57: redefinition of `int tmp'
control.cpp:33: `int tmp' previously defined here
control.cpp:57: passing `int' to argument 1 of `memset(void *, int,
unsigned int)' lacks a cast
control.cpp:57: initialization to `int' from `char *' lacks a cast
control.cpp:57: multiple initializations given for `tmp'
control.cpp:59: parse error before `if'
control.cpp:63: ANSI C++ forbids declaration `rcv_buf' with no type
control.cpp:63: redefinition of `int rcv_buf'
control.cpp:36: `int rcv_buf' previously defined here
control.cpp:63: initialization to `int' from `const char *' lacks a
cast
control.cpp:65: parse error before `while'
control.cpp:68: invalid use of member `Socket::rcvd'
control.cpp:68: ANSI C++ forbids declaration `rcv_buf' with no type
control.cpp:68: assignment (not initialization) in declaration
control.cpp:69: ANSI C++ forbids declaration `rcv_buf' with no type
control.cpp:69: redefinition of `int rcv_buf'
control.cpp:63: `int rcv_buf' previously defined here
control.cpp:69: multiple initializations given for `rcv_buf'
control.cpp:71: ANSI C++ forbids declaration `tmp' with no type
control.cpp:71: redefinition of `int tmp'
control.cpp:57: `int tmp' previously defined here
control.cpp:71: passing `int' to argument 1 of `memset(void *, int,
unsigned int)' lacks a cast
control.cpp:71: initialization to `int' from `char *' lacks a cast
control.cpp:71: multiple initializations given for `tmp'
control.cpp:73: parse error before `if'
control.cpp:76: ANSI C++ forbids declaration `exit' with no type
control.cpp:76: redefinition of `int exit'
control.cpp:47: `int exit' previously defined here
control.cpp:77: parse error before `}'
control.cpp:82: ANSI C++ forbids declaration `exit' with no type
control.cpp:82: redefinition of `int exit'
control.cpp:76: `int exit' previously defined here
control.cpp:83: parse error before `}'
control.cpp:85: syntax error before `<'
In file included from ftp_headers.h:43,
from data.cpp:18:
Socket.h:29: syntax error before `;'
Socket.h:30: syntax error before `;'
Socket.h:37: parse error before `='
Socket.h:46: `string' was not declared in this scope
Socket.h:47: `string' was not declared in this scope
Socket.h:47: parse error before `)'
Socket.h:47: ANSI C++ forbids initialization of member `sending'
Socket.h:47: making `sending' static
Socket.h:47: ANSI C++ forbids in-class initialization of non-const
static member `sending'
Socket.h:47: declaration of `int Socket::sending'
Socket.h:46: conflicts with previous declaration `int Socket::sending'
Socket.h:49: syntax error before `('
Socket.h:47: duplicate member `Socket::sending'
In file included from user_interface.h:24,
from ftp_headers.h:44,
from data.cpp:18:
control.h:25: parse error before `='
control.h:28: syntax error before `('
In file included from user_interface.h:25,
from ftp_headers.h:44,
from data.cpp:18:
data.h:26: parse error before `ipaddress'
data.h:29: `string' was not declared in this scope
data.h:29: parse error before `)'
data.h:34: `string' was not declared in this scope
data.h:34: parse error before `)'
In file included from ftp_headers.h:44,
from data.cpp:18:
user_interface.h:41: syntax error before `;'
user_interface.h:44: syntax error before `;'
user_interface.h:45: syntax error before `;'
user_interface.h:46: syntax error before `;'
user_interface.h:53: `string' was not declared in this scope
user_interface.h:53: variable or field `setCmd' declared void
user_interface.h:58: syntax error before `('
user_interface.h:71: parse error before `='
data.cpp:20: parse error before `ipaddress'
data.cpp:29: `string' was not declared in this scope
data.cpp:29: parse error before `)'
data.cpp: In method `int data::recive(...)':
data.cpp:31: `filename' undeclared (first use this function)
data.cpp:31: (Each undeclared identifier is reported only once
data.cpp:31: for each function it appears in.)
data.cpp:39: implicit declaration of function `int reciving(...)'
data.cpp: At top level:
data.cpp:67: parse error before `)'
data.cpp: In method `int data::send(...)':
data.cpp:71: `FILE' undeclared (first use this function)
data.cpp:71: `fp' undeclared (first use this function)
data.cpp:72: implicit declaration of function `int fopen(...)'
data.cpp:83: implicit declaration of function `int fgetc(...)'
data.cpp:86: `Socket::sending' cannot be used as a function
data.cpp:94: `Socket::sending' cannot be used as a function
data.cpp:97: implicit declaration of function `int fclose(...)'
In file included from ftp_headers.h:43,
from user_interface.cpp:18:
Socket.h:29: syntax error before `;'
Socket.h:30: syntax error before `;'
Socket.h:37: parse error before `='
Socket.h:46: `string' was not declared in this scope
Socket.h:47: `string' was not declared in this scope
Socket.h:47: parse error before `)'
Socket.h:47: ANSI C++ forbids initialization of member `sending'
Socket.h:47: making `sending' static
Socket.h:47: ANSI C++ forbids in-class initialization of non-const
static member `sending'
Socket.h:47: declaration of `int Socket::sending'
Socket.h:46: conflicts with previous declaration `int Socket::sending'
Socket.h:49: syntax error before `('
Socket.h:47: duplicate member `Socket::sending'
In file included from user_interface.h:24,
from ftp_headers.h:44,
from user_interface.cpp:18:
control.h:25: parse error before `='
control.h:28: syntax error before `('
In file included from user_interface.h:25,
from ftp_headers.h:44,
from user_interface.cpp:18:
data.h:26: parse error before `ipaddress'
data.h:29: `string' was not declared in this scope
data.h:29: parse error before `)'
data.h:34: `string' was not declared in this scope
data.h:34: parse error before `)'
In file included from ftp_headers.h:44,
from user_interface.cpp:18:
user_interface.h:41: syntax error before `;'
user_interface.h:44: syntax error before `;'
user_interface.h:45: syntax error before `;'
user_interface.h:46: syntax error before `;'
user_interface.h:53: `string' was not declared in this scope
user_interface.h:53: variable or field `setCmd' declared void
user_interface.h:58: syntax error before `('
user_interface.h:71: parse error before `='
user_interface.cpp:26: parse error before `a'
user_interface.cpp:29: ANSI C++ forbids declaration `port' with no
type
user_interface.cpp:29: `p' was not declared in this scope
user_interface.cpp:31: ANSI C++ forbids declaration `cmd' with no type
user_interface.cpp:31: initialization to `int' from `const char *'
lacks a cast
user_interface.cpp:32: ANSI C++ forbids declaration `arg1' with no
type
user_interface.cpp:32: initialization to `int' from `const char *'
lacks a cast
user_interface.cpp:33: ANSI C++ forbids declaration `arg2' with no
type
user_interface.cpp:33: initialization to `int' from `const char *'
lacks a cast
user_interface.cpp:35: ANSI C++ forbids declaration `c' with no type
user_interface.cpp:37: ANSI C++ forbids declaration `end' with no type
user_interface.cpp:38: ANSI C++ forbids declaration `ready' with no
type
user_interface.cpp:39: ANSI C++ forbids declaration `connected' with
no type
user_interface.cpp:40: ANSI C++ forbids declaration `data_open' with
no type
user_interface.cpp:41: ANSI C++ forbids declaration `operation' with
no type
user_interface.cpp:42: ANSI C++ forbids declaration `isput' with no
type
user_interface.cpp:44: ANSI C++ forbids declaration `usr' with no type
user_interface.cpp:44: conflicting types for `int usr'
user_interface.cpp:20: previous declaration as `class User_interface *
usr'
user_interface.cpp:44: invalid use of `this' at top level
user_interface.cpp:45: parse error before `}'
user_interface.cpp: In method `void User_interface::prompt()':
user_interface.cpp:56: `add' undeclared (first use this function)
user_interface.cpp:56: (Each undeclared identifier is reported only
once
user_interface.cpp:56: for each function it appears in.)
user_interface.cpp:60: `string' undeclared (first use this function)
user_interface.cpp:60: parse error before `;'
user_interface.cpp:62: `input' undeclared (first use this function)
user_interface.cpp:62: implicit declaration of function `int
getline(...)'
user_interface.cpp:62: warning: cannot pass objects of type
`_IO_istream_withassign' through `...'
user_interface.cpp:63: `User_interface::setCmd' cannot be used as a
function
user_interface.cpp:65: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:67: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:78: parse error before `;'
user_interface.cpp:80: `comd' undeclared (first use this function)
user_interface.cpp:80: warning: cannot pass objects of type
`_IO_istream_withassign' through `...'
user_interface.cpp:81: `User_interface::setCmd' cannot be used as a
function
user_interface.cpp:83: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:84: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:85: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:86: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:87: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:88: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:89: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp:90: request for member `compare' in `cmd', which is
of non-aggregate type `int'
user_interface.cpp: At top level:
user_interface.cpp:100: parse error before `)'
user_interface.cpp:101: no `void User_interface::setCmd(...)' member
function declared in class `User_interface'
user_interface.cpp:101: declaration of `void
User_interface::setCmd(...)'
user_interface.h:53: conflicts with previous declaration `int
User_interface::setCmd'
user_interface.cpp: In method `void User_interface::setCmd(...)':
user_interface.cpp:112: assignment to `int' from `char *' lacks a cast
user_interface.cpp:113: assignment to `int' from `const char *' lacks
a cast
user_interface.cpp:117: assignment to `int' from `char *' lacks a cast
user_interface.cpp:118: assignment to `int' from `const char *' lacks
a cast
user_interface.cpp:122: assignment to `int' from `char *' lacks a cast
user_interface.cpp:123: assignment to `int' from `const char *' lacks
a cast
user_interface.cpp: In method `bool User_interface::open()':
user_interface.cpp:134: request for member `compare' in `arg1', which
is of non-aggregate type `int'
user_interface.cpp:136: parse error before `;'
user_interface.cpp:138: warning: cannot pass objects of type
`_IO_istream_withassign' through `...'
user_interface.cpp:151: request for member `compare' in `arg2', which
is of non-aggregate type `int'
user_interface.cpp:152: request for member `c_str' in `arg2', which is
of non-aggregate type `int'
user_interface.cpp:197: no matching function for call to
`control::reciving ()'
user_interface.cpp:203: implicit declaration of function `int
user_pass(...)'
user_interface.cpp:203: request for member `substr' in `user_pass()',
which is of non-aggregate type `int'
user_interface.cpp:210: no matching function for call to
`control::sending (const char[7])'
user_interface.cpp:212: `string' undeclared (first use this function)
user_interface.cpp:212: parse error before `='
user_interface.cpp:213: `tmps' undeclared (first use this function)
user_interface.cpp: At top level:
user_interface.cpp:243: syntax error before `::'
user_interface.cpp:246: syntax error before `;'
user_interface.cpp:250: ANSI C++ forbids declaration `system' with no
type
user_interface.cpp:250: `int system' redeclared as different kind of
symbol
/usr/include/stdlib.h:132: previous declaration of `int system(const
char *)'
user_interface.cpp:250: initialization to `int' from `const char *'
lacks a cast
user_interface.cpp:252: syntax error before `*'
user_interface.cpp:261: parse error before `for'
user_interface.cpp:261: parse error before `;'
user_interface.cpp:261: ANSI C++ forbids declaration `tmp' with no
type
user_interface.cpp:261: variable-sized object `tmp' may not be
initialized
user_interface.cpp:261: conflicting types for `int tmp[(((i++) - 1) +
1)]'
user_interface.cpp:258: previous declaration as `char tmp[1024]'
user_interface.cpp:261: storage size of `tmp' isn't constant
user_interface.cpp:261: parse error before `)'
user_interface.cpp:262: `fp' was not declared in this scope
user_interface.cpp:262: implicit declaration of function `int
fgetc(...)'
user_interface.cpp:262: parse error before `;'
user_interface.cpp:262: syntax error before `++'
user_interface.cpp:264: ANSI C++ forbids declaration `system' with no
type
user_interface.cpp:264: redefinition of `int system'
user_interface.cpp:250: `int system' previously defined here
user_interface.cpp:264: initialization to `int' from `const char *'
lacks a cast
user_interface.cpp:266: ANSI C++ forbids declaration `nome' with no
type
user_interface.cpp:266: initialization to `int' from `int *' lacks a
cast
user_interface.cpp:270: syntax error before `<'
user_interface.cpp:272: ANSI C++ forbids declaration `getline' with no
type
user_interface.cpp:272: warning: `getline' was previously implicitly
declared to return `int'
user_interface.cpp:272: initializer list being treated as compound
expression
user_interface.cpp:273: parse error before `if'
user_interface.cpp:278: ANSI C++ forbids declaration `input' with no
type
user_interface.cpp:278: `int input' used prior to declaration
user_interface.cpp:278: invalid operands `const char *' and `const
char[3]' to binary `operator +'
user_interface.cpp:279: syntax error before `->'
user_interface.cpp:280: syntax error before `->'
user_interface.cpp:282: ANSI C++ forbids declaration `input' with no
type
user_interface.cpp:282: redefinition of `int input'
user_interface.cpp:278: `int input' previously defined here
user_interface.cpp:282: initialization to `int' from `char *' lacks a
cast
user_interface.cpp:283: ANSI C++ forbids declaration `input' with no
type
user_interface.cpp:283: redefinition of `int input'
user_interface.cpp:282: `int input' previously defined here
user_interface.cpp:283: invalid operands `const char *' and `const
char[3]' to binary `operator +'
user_interface.cpp:284: syntax error before `->'
user_interface.cpp: In method `int User_interface::cwd()':
user_interface.cpp:299: request for member `compare' in `arg1', which
is of non-aggregate type `int'
user_interface.cpp:301: parse error before `;'
user_interface.cpp:303: `getline' cannot be used as a function
user_interface.cpp:307: parse error before `;'
user_interface.cpp:308: invalid operands `const char *' and `const
char[3]' to binary `operator +'
user_interface.cpp:309: no matching function for call to
`control::sending (int &)'
user_interface.cpp:310: no matching function for call to
`control::reciving ()'
user_interface.cpp: In method `int User_interface::pwd()':
user_interface.cpp:325: no matching function for call to
`control::sending (const char[6])'
user_interface.cpp:326: no matching function for call to
`control::reciving ()'
user_interface.cpp: In method `int User_interface::ls()':
user_interface.cpp:355: no matching function for call to
`control::sending (const char[7])'
user_interface.cpp:356: no matching function for call to
`control::reciving ()'
user_interface.cpp:357: call of overloaded `recive()' is ambiguous
data.h:29: candidates are: int data::recive(...)
data.h:32: int data::recive()
user_interface.cpp:358: no matching function for call to
`control::reciving ()'
user_interface.cpp: In method `int User_interface::get()':
user_interface.cpp:378: request for member `compare' in `arg1', which
is of non-aggregate type `int'
user_interface.cpp:380: parse error before `;'
user_interface.cpp:382: `getline' cannot be used as a function
user_interface.cpp:385: `string' undeclared (first use this function)
user_interface.cpp:385: parse error before `;'
user_interface.cpp:387: `input2' undeclared (first use this function)
user_interface.cpp:387: `getline' cannot be used as a function
user_interface.cpp:391: request for member `compare' in `arg2', which
is of non-aggregate type `int'
user_interface.cpp:401: no matching function for call to
`control::sending (const char[9])'
user_interface.cpp:402: no matching function for call to
`control::reciving ()'
user_interface.cpp:418: invalid operands `const char *' and `const
char[3]' to binary `operator +'
user_interface.cpp:419: no matching function for call to
`control::reciving ()'
user_interface.cpp:427: no matching function for call to
`control::reciving ()'
user_interface.cpp:429: no matching function for call to
`control::reciving ()'
user_interface.cpp: In method `int User_interface::put()':
user_interface.cpp:450: request for member `compare' in `arg1', which
is of non-aggregate type `int'
user_interface.cpp:452: parse error before `;'
user_interface.cpp:454: `getline' cannot be used as a function
user_interface.cpp:457: parse error before `;'
user_interface.cpp:459: `getline' cannot be used as a function
user_interface.cpp:463: request for member `compare' in `arg2', which
is of non-aggregate type `int'
user_interface.cpp:473: no matching function for call to
`control::sending (const char[9])'
user_interface.cpp:474: no matching function for call to
`control::reciving ()'
user_interface.cpp:490: invalid operands `const char *' and `const
char[3]' to binary `operator +'
user_interface.cpp:491: no matching function for call to
`control::reciving ()'
user_interface.cpp:505: no matching function for call to
`control::reciving ()'
user_interface.cpp:506: no matching function for call to
`control::reciving ()'
user_interface.cpp: In method `short unsigned int
User_interface::pasv()':
user_interface.cpp:522: no matching function for call to
`control::sending (const char[7])'
user_interface.cpp:523: parse error before `='
user_interface.cpp:550: `string' undeclared (first use this function)
user_interface.cpp:550: parse error before `['
user_interface.cpp:556: `add_port' undeclared (first use this
function)
user_interface.cpp: In method `void User_interface::close()':
user_interface.cpp:592: no matching function for call to
`control::sending (const char[7])'
user_interface.cpp:593: no matching function for call to
`control::reciving ()'
user_interface.cpp: In function `void sig_gest(int)':
user_interface.cpp:614: base operand of `->' is not a pointer
user_interface.cpp:615: base operand of `->' is not a pointer
user_interface.cpp:616: base operand of `->' is not a pointer
user_interface.cpp:636: base operand of `->' is not a pointer
user_interface.cpp:637: base operand of `->' is not a pointer
user_interface.cpp:638: base operand of `->' is not a pointer
user_interface.cpp:641: base operand of `->' is not a pointer
In file included from ftp_headers.h:43,
from main.cpp:22:
Socket.h:29: syntax error before `;'
Socket.h:30: syntax error before `;'
Socket.h:37: parse error before `='
Socket.h:46: `string' was not declared in this scope
Socket.h:47: `string' was not declared in this scope
Socket.h:47: parse error before `)'
Socket.h:47: ANSI C++ forbids initialization of member `sending'
Socket.h:47: making `sending' static
Socket.h:47: ANSI C++ forbids in-class initialization of non-const
static member `sending'
Socket.h:47: declaration of `int Socket::sending'
Socket.h:46: conflicts with previous declaration `int Socket::sending'
Socket.h:49: syntax error before `('
Socket.h:47: duplicate member `Socket::sending'
In file included from user_interface.h:24,
from ftp_headers.h:44,
from main.cpp:22:
control.h:25: parse error before `='
control.h:28: syntax error before `('
In file included from user_interface.h:25,
from ftp_headers.h:44,
from main.cpp:22:
data.h:26: parse error before `ipaddress'
data.h:29: `string' was not declared in this scope
data.h:29: parse error before `)'
data.h:34: `string' was not declared in this scope
data.h:34: parse error before `)'
In file included from ftp_headers.h:44,
from main.cpp:22:
user_interface.h:41: syntax error before `;'
user_interface.h:44: syntax error before `;'
user_interface.h:45: syntax error before `;'
user_interface.h:46: syntax error before `;'
user_interface.h:53: `string' was not declared in this scope
user_interface.h:53: variable or field `setCmd' declared void
user_interface.h:58: syntax error before `('
user_interface.h:71: parse error before `='
main.cpp: In function `int main(int, char **)':
main.cpp:34: no matching function for call to
`User_interface::User_interface (char *&, int)'
user_interface.h:76: candidates are:
User_interface::User_interface(const User_interface &)
user_interface.h:76: User_interface::User_interface()
main.cpp:40: no matching function for call to
`User_interface::User_interface (char *&)'
user_interface.h:76: candidates are:
User_interface::User_interface(const User_interface &)
user_interface.h:76: User_interface::User_interface()
*** Error code 1
Stop.
make: stopped in /home/gabo/laboratorio
If you think it's necessary I can post also the code.
Thank's all for your attenction
gabo
- Next message: Chuck Dillon: "Re: porting problem"
- Previous message: Barry Margolin: "Re: forking wait3"
- Next in thread: Chuck Dillon: "Re: porting problem"
- Reply: Chuck Dillon: "Re: porting problem"
- Reply: Paul Pluzhnikov: "Re: porting problem"
- Reply: Paul F. Johnson: "Re: porting problem"
- Reply: gabo: "Re: porting problem"
- Reply: gabo: "Re: porting problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|