Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Mar 2002 12:57:29 +0100
From:      Aleksander Rozman - Andy <andy@kksonline.com>
To:        freebsd-hackers@FreeBSD.ORG
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   How to write code in FreeBSD
Message-ID:  <5.0.2.1.0.20020302125303.02c1ca90@164.8.8.5>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.2.1.0.20020302125303.02c1ca90>