From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 28 16:11:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3654716A4CE for ; Mon, 28 Feb 2005 16:11:30 +0000 (GMT) Received: from house.arach.net.au (house2.arach.net.au [203.30.44.85]) by mx1.FreeBSD.org (Postfix) with SMTP id D073743D58 for ; Mon, 28 Feb 2005 16:11:28 +0000 (GMT) (envelope-from kat-free@kaqelectronics.dyndns.org) Received: (qmail 14102 invoked from network); 28 Feb 2005 16:11:27 -0000 Received: from unknown (HELO pythagorus.kaqelectronics.dyndns.org) (202.89.183.21) by house2.arach.net.au with SMTP for ; 28 Feb 2005 16:11:27 -0000 Received: from [192.168.0.2] (kathy.kaqelectronics.dyndns.org. [192.168.0.2]) id j1SGDXIa084384; Tue, 1 Mar 2005 00:13:33 +0800 (WST) (envelope-from kat-free@kaqelectronics.dyndns.org) Received: from 127.0.0.1 (AVG SMTP 7.0.300 [266.5.1]); Tue, 01 Mar 2005 00:11:26 +0800 Message-ID: <422342AE.9040207@kaqelectronics.dyndns.org> Date: Tue, 01 Mar 2005 00:11:26 +0800 From: Kathy Quinlan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-au, en, en-us To: Dan Nelson References: <42233B48.4010108@kaqelectronics.dyndns.org> <20050228160802.GG8778@dan.emsphone.com> In-Reply-To: <20050228160802.GG8778@dan.emsphone.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed cc: freebsd-hackers@freebsd.org Subject: Re: clock.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 16:11:30 -0000 Dan Nelson wrote: > In the last episode (Feb 28), Kathy Quinlan said: > >>I have this: >> >>#include >> >>In program I use this: >> >>DELAY(1000); >> >>I get this: >> >>undefined referance to 'DELAY' >> >>when I compile the program with GCC with flags -Wall -g -o com main.c > > > DELAY is a kernel function. In user processes, just use sleep() or > nanosleep(). When you directly #include headers from > userland, the only useable things are structure definitions and macro > constants (and even then it's recommended that you use a userland > interface instead). You can't call any of the functions. > Thanks, using sleep now, only need a second :) Slowly learning programming in a real enviroment whene we do not have microsloth program to hold our hands (never had a VC++ ap able to do anything to a system, this program has already core dumped a few times) Regards, Kat. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005