LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2008, 07:42 AM   #1
Sambojambo
LQ Newbie
 
Registered: Feb 2008
Location: UK
Distribution: Ubuntu - Hardy Heron
Posts: 10

Rep: Reputation: 0
C header file location?


Hello everyone,

Usually not my area - but I'm having to tentivley dip my toe into a bit of 'C' at the moment and am still finding my way around.

Code:
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <math.h>
#include <jasper/jasper.h>
I'm trying to compile something that needs libjasper 'The JasPer JPEG-2000 runtime library' available in the Ubuntu repos which is installed - however my system is unable to find it?

Code:
sam@nugget:~/workspace/castengine/admin/c_stuff$ gcc grib2_access.c -o grib2_access
In file included from grib2_access.c:3:
unpackgrib2.c:135:27: error: jasper/jasper.h: No such file or directory
In file included from grib2_access.c:3:


My question is: where are the C libs placed on my machine (Ubuntu Gutsy ) so that I can take a look? Is the jasper.h included in the right way? I sure there's something obvious that I'm missing.

Thanks in advance - any suggestions would be appreciated.
 
Old 02-18-2008, 08:08 AM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
The file maybe in usr/include or usr/local/include have you added the include path for gcc
something like -I/include/jasper

edit:
"...where are the C libs..." I didn't see this libs are in usr/lib and usr/local/lib The error you are getting thought is that it can not find the header.

Last edited by dmail; 02-18-2008 at 08:10 AM.
 
Old 02-18-2008, 08:45 AM   #3
Sambojambo
LQ Newbie
 
Registered: Feb 2008
Location: UK
Distribution: Ubuntu - Hardy Heron
Posts: 10

Original Poster
Rep: Reputation: 0
Not there

Thanks Dmail - that makes more sense. I now know where to find the header files. It looks like the jasper.h simply wasn't there?

I've now installed the JasPer library from source and jasper.h is now in the right place.

Code:
sam@nugget:/usr/local/include$ tree
.
|-- jasper
|   |-- jas_cm.h
|   |-- jas_config.h
|   |-- jas_config2.h
|   |-- jas_debug.h
|   |-- jas_fix.h
|   |-- jas_getopt.h
|   |-- jas_icc.h
|   |-- jas_image.h
|   |-- jas_init.h
|   |-- jas_malloc.h
|   |-- jas_math.h
|   |-- jas_seq.h
|   |-- jas_stream.h
|   |-- jas_string.h
|   |-- jas_tmr.h
|   |-- jas_tvp.h
|   |-- jas_types.h
|   |-- jas_version.h
|   `-- jasper.h
|-- jconfig.h
|-- jerror.h
|-- jmorecfg.h
`-- jpeglib.h

1 directory, 23 files
Thanks for your help
 
  


Reply



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
Location of C Header Files in Fedora Core 5 wadedesk Linux - Software 3 05-11-2006 01:12 AM
suse 9.2 and vmware. asks for location of C header gonus Linux - Software 4 02-08-2005 09:11 PM
header file location ..mach.h .. pashupathinath Programming 1 10-21-2004 06:27 PM
c header files location 2.6.5 kernel? Rhatlinux Linux - Software 1 09-11-2004 03:39 PM
vmware tools install needs c header location molotov Libranet 5 04-28-2004 12:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration