delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/05/11:43:40

From: norm AT berkshire DOT net (Norman Walsh)
Subject: B19: truncate() missing?
5 Mar 1998 11:43:40 -0800 :
Message-ID: <176-Thu05Mar1998143345-0500-norm.cygnus.gnu-win32@berkshire.net>
References: norm AT berkshire DOT net (Norman Walsh)
Reply-To: Norman Walsh <norm AT berkshire DOT net>
Mime-Version: 1.0 (generated by SEMI MIME-Edit 0.88 "Tsurugi")
To: gnu-win32 AT cygnus DOT com

Greping through the include directories, I see that sys/unistd.h
declares truncate(), but greping through the lib directories, I
don't see any definition for it.

Sure enough, the gcc linker can't seem to find it.  Here's my
attempt to build part of the msql package:

gcc -O -I../ -DHAVE_CONFIG_H -DHAVE_SSIZE_T -DHAVE_U_INT
    -I../lang-common -DHAVE_DYNAMIC mod_lite.o
    ../lang-common/mod_std.o ../lang-common/mod_msql.o lite.o
    lite_lex.o modules.o ../lang-common/liblite.a ../msql/libmsql.a
    ../regexp/libreg exp.a -o lite -L../lib

.../lang-common/mod_std.o(.text+0x17ff):mod_std.c: undefined reference 
to `truncate'

Suggestions?

--norm


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019