[haiku-development] Re: g++ command line

  • From: Andrew Hudson <hudsonco1@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 22 Feb 2014 15:56:55 -0500 (EST)

Hi Denis,


Here is some high level description that might or might not be useful:


http://www.osnews.com/story/24945/A_Programmer_s_Introduction_to_the_Haiku_OS


- Andrew



-----Original Message-----
From: Denis Papin <ddcrespe@xxxxxxxxxxx>
To: haiku-development <haiku-development@xxxxxxxxxxxxx>
Sent: Sat, Feb 22, 2014 2:31 pm
Subject: [haiku-development] Re: g++ command line


Hi, 

I am trying to figure out how Haiku handles the system calls. 

As an example, I had a look at the ps.c source code. This short program uses 
system calls like _get_next_team_info(...)  from team.cpp which is part of the 
kernel (AFAIK).

But, when I compile doing gcc ps.c -o ps2, it works and I get a nice ps2 
program. How it is possible ?

I guess there are some default likings to some kernel subs here because the 
compiler needs to find the _get_next_team_info entry point somewhere. It might 
be related to environment variables but I can't see the whole tricks.

--denis.                                          

 

Other related posts: