LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-08-2003, 09:51 PM   #1
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: SuSE 10
Posts: 915

Rep: Reputation: 30
Finding Source Folder


I was trying to compile a UDF module and it asked me for the source folder of my Linux. I don't know what it is at this time, and its best guess was wrong. How would I go about finding it?

Related: When using GCC and G++, what are the libraries used under Linux that are equivalent to those used by the M$ Development Studio? IE: iostream.h, math.h, fstream.h, etc. Are they the same? If in doubt over which one, I am most interested in G++ over GCC, but I do want them both.
 
Old 10-08-2003, 10:04 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
There could be many source folders on your system, depending on what source you are actually looking for. If you are looking for the kernel source, its usually in /usr/src/linux-2.4

-K
 
Old 10-08-2003, 10:16 PM   #3
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: SuSE 10
Posts: 915

Original Poster
Rep: Reputation: 30
OK.
 
Old 10-14-2003, 10:01 PM   #4
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: SuSE 10
Posts: 915

Original Poster
Rep: Reputation: 30
I will ask this again:

When using GCC and G++, what are the libraries used under Linux that are equivalent to those used by the M$ Development Studio? IE: iostream.h, math.h, fstream.h, etc. Are they the same? If in doubt over which one, I am most interested in G++ over GCC, but I do want them both.
 
Old 10-14-2003, 10:22 PM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
most of the standard c++ include files are the same between linux and ms but not exactly the same in implementation. an example is string.h. in windows, there's a stricmp which is a string compare that ignores case. in linux, it's called strnocasecmp. but if you stick to ansi compliant code, the basic headers like iostream.h, string.h, fstream.h, etc are basically the same. system header files are different though.
 
Old 10-15-2003, 10:18 AM   #6
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: SuSE 10
Posts: 915

Original Poster
Rep: Reputation: 30
I figured it was, but that's giving me an error. Now knowing this, I'll try to get rid of the # that is standard in the #include <iostream.h> precompiler. I always needed to put it in like that when using M$ Development Studio. I think Linux uses that as a comment, don't it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
finding the kernel source Damon Spector Linux - Software 4 02-20-2005 11:45 AM
Finding source code for Linux waynefrank Linux - Newbie 4 01-07-2005 08:24 AM
delete source folder? machiner Linux - Software 2 07-27-2004 04:37 PM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 10:09 PM
Finding My --kernel-source-path CAL Linux - Newbie 6 04-14-2004 08:57 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration