From owner-freebsd-hackers Sat Mar 2 4: 1: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from sonic.kks.net (sonic.kks.net [213.161.0.18]) by hub.freebsd.org (Postfix) with ESMTP id 28B7237B405; Sat, 2 Mar 2002 04:00:57 -0800 (PST) Received: from voyager.kksonline.com (5-51.ro.cable.kks.net [213.161.5.51]) by sonic.kks.net (Postfix) with ESMTP id 5FA0E253; Sat, 2 Mar 2002 13:01:01 +0100 (CET) Message-Id: <5.0.2.1.0.20020302125303.02c1ca90@164.8.8.5> X-Sender: rozmanal@164.8.8.5 X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sat, 02 Mar 2002 12:57:29 +0100 To: freebsd-hackers@FreeBSD.ORG From: Aleksander Rozman - Andy Subject: How to write code in FreeBSD Cc: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi ! I was wondering if there are any guidelines how to write code in FreeBSD. I have taken a look at several code of FreeBSD but each is written differently? Problem is I don't know which is preferred way. Reason I am asking this is that I am trying to add some code to kernel. Compile is OK, no error, no warning, but on link all variables defined with extern are marked as : undefined reference to 'variable', variable is extern and .h file which has it defined is included... Where can be the problem?? Another problem is that I get multiple definition error...how can I get over this. Please help Andy ************************************************************************** * Aleksander Rozman - Andy * Fandoms: E2:EA, SAABer, Trekkie, Earthie * * andy@kksonline.com * Sentinel, BH 90210, True's Trooper, * * andy@atechnet.dhs.org * Heller's Angel, Questie, Legacy, PO5, * * Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender * * ICQ-UIC: 4911125 ********************************************* * PGP key available * http://www.atechnet.dhs.org/~andy/ * ************************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message