Date: Sat, 2 Mar 2002 04:11:35 -0800 From: Alfred Perlstein <bright@mu.org> To: Aleksander Rozman - Andy <andy@kksonline.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to write code in FreeBSD Message-ID: <20020302121135.GV77980@elvis.mu.org> In-Reply-To: <5.0.2.1.0.20020302125303.02c1ca90@164.8.8.5> References: <5.0.2.1.0.20020302125303.02c1ca90@164.8.8.5>
next in thread | previous in thread | raw e-mail | index | archive | help
* Aleksander Rozman - Andy <andy@kksonline.com> [020302 04:01] wrote: > > Hi ! Hello, don't cc' both questions and hackers. > > 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. man 9 style > 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. By learning how to properly link C code. Perhaps if you gave us some sample code, how you compile and link it and the error messages you actually get it would help some. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020302121135.GV77980>