Re: g++ problem

From: Alexander Kabaev <ak03_at_gte.com>
Date: Thu, 6 Nov 2003 11:28:28 -0500
On Thu, 6 Nov 2003 16:55:00 +0100 (CET)
"C. Kukulies" <kuku_at_www.kukulies.org> wrote:

> I tried to compile a virus-scanner for Linux that allows for scanning
> Windoze PCs in a network for all sorts of recent viruses (RPC/DCOM and
> such).
> 
> http://www.enyo.de/fw/software/doscan
> 
> Compilation fails with the following:
> 
> kukuboo2k# gmake
> g++ -g -O2 -Wall -I/usr/local/include -I. -I. -I./lib \
>         -MMD -MF src/doscan.d \
>         -c -o src/doscan.o src/doscan.cc
> In file included from src/doscan.cc:28:
> /usr/local/include/getopt.h:115: error: declaration of C function `int
> getopt()
>    ' conflicts with
> /usr/include/unistd.h:377: error: previous declaration `int
> getopt(int, char*
>    const*, const char*)' here
> gmake: *** [src/doscan.o] Error 1
> 
> I wonder where /usr/local/include comes from. If I remove that it
> compiles smoothly.

Uhm, from you command line? What _this_ has to do with a compiler?

-- 
Alexander Kabaev
Received on Thu Nov 06 2003 - 07:28:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:27 UTC