Re: [dev] simple portscanner

From: v4hn <me_AT_v4hn.de>
Date: Sun, 3 Jan 2010 02:12:09 +0100

On Sun, Jan 03, 2010 at 12:35:44AM +0300, anonymous wrote:
> Something from gcc manpage:
>
> "It makes a difference where in the command you write this option; the
> linker searches and processes libraries and object files in the order
> they are specified. Thus, foo.o -lz bar.o searches library z after
> file foo.o but before bar.o. If bar.o refers to functions in z, those
> functions may not be loaded."
>
> "The linker handles an archive file by scanning through it for members
> which define symbols that have so far been referenced but not
> defined."

Hm, never noticed that behaviour before..

> If it works with the following I will push it into repository.
> $(CC) -o $(PROG) $(OBJS) $(LDFLAGS)

That does work.

There are also some minor changes attached
in order to remove warnings/notices from icc / gcc -Wextra.

v4hn

Received on Sun Jan 03 2010 - 01:12:09 UTC

This archive was generated by hypermail 2.2.0 : Sun Jan 03 2010 - 01:24:02 UTC