Sponsored Content
Full Discussion: gcc compiling error
Top Forums Programming gcc compiling error Post 302443131 by fpmurphy on Friday 6th of August 2010 08:20:51 PM
Old 08-06-2010
And the output from
Code:
gcc -###

 

10 More Discussions You Might Find Interesting

1. Programming

beginner at C: Need help compiling/linking with gcc

I'm trying to do something fairly simple but keep getting frustrating messages.. Here it is: I have 3 files: init.h <header> init.c <#include <curses.h> and "init.h"> main.c <#include "init.h"> now, how can I compile my main.c using gcc? ( I have a hard time making the init.o) ... (1 Reply)
Discussion started by: My_Name
1 Replies

2. Programming

syntax error while compiling in gcc

hello, i have a structure defined as follows struct Image { int lenght; int height; }; and i have another structure where i declare a array of the above structure struct ShapeImage { Image image; }; when i compile this code with gcc it shows me the following error : ... (3 Replies)
Discussion started by: svh
3 Replies

3. UNIX for Dummies Questions & Answers

errors compiling gcc 4.2.1

Hello, I have never had a successful compile on the 2.6 kernel. On every arch in which I try to compile gcc I get either "i686-pc-cygwin-ar command not found or "i686-suse-linux-ar command not found. This always happens during the make process after configure checks for ar and finds it's just ar.... (2 Replies)
Discussion started by: kwa71
2 Replies

4. Programming

gcc compiling with -DUSE_LONGLONG

Sorry for a silly question. I a program that need to compile with -DUSE_LONGLONG to turn on the long Int as the document of that program said so, but I really don't know how to do this. I normally do this: ./configure make make install and it works fine. But I don't know how to compile... (2 Replies)
Discussion started by: hiepng
2 Replies

5. Programming

probs compiling with gcc + lpthread

Im trying to write a program atm which uses mutexes to control thread access to a certain code section ( the critical section). However, whenever I compile the code using gcc I get the following message from gcc Unresolved text symbol "pthread_mutex_lock" Unresolved text symbol... (1 Reply)
Discussion started by: JamesGoh
1 Replies

6. Solaris

Problem compiling Samba 3.5.1 on Solaris 10 with gcc (3.4.6)

I'm getting this error when 'Linking shared library bin/libtalloc.so.2'... anyone know what's up here? Using CFLAGS = -O -I. -I/source/samba-3.5.1/source3 -I/source/samba-3.5.1/source3/../lib/popt -I/source/samba-3.5.1/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace... (6 Replies)
Discussion started by: son_t
6 Replies

7. Programming

Problem with static compiling - GCC

Hi guys. I want to compile three files: gcc -static main.c fib.c fib.h it is pure C i mean i use standard C library. but it gives me this error: /usr/bin/ld: cannot find -lc collect2: ld returned 1 exit status what should i do? (4 Replies)
Discussion started by: majid.merkava
4 Replies

8. Programming

Compiling a 64 bits program using gcc

Hi Everyone, I can ask what is the option to compile a 64 bits program using gcc. I have looked everywhere but can't find it. Before I used to use cc and the -q64 flag was the option to generate the 64 bits binary. Can anyone tell me what is the flags when using gcc. Thanks...... (3 Replies)
Discussion started by: arizah
3 Replies

9. UNIX for Advanced & Expert Users

Compiling libcdio-paranoia, gcc found - C compiler doesnt work

Heyas I'm currently trying to make a fresh build from scratch/source of FFMPEG. This said, it brings quite a tail with it, so the use of a script was very obvious. Anyway, i'm currently stuck at named package. Lets ignore the tarball/download line, as the error is after. Commands... (0 Replies)
Discussion started by: sea
0 Replies

10. UNIX for Beginners Questions & Answers

Compiling GCC 6.3.0 - Error with Library

First of all -- thanks for being patient with me. I hope I'm submitting this correctly. Also I haven't done UNIX Admin since the early 1990's. I'm actually a DBA. But, since I'm the one in the office with the UNIX experience, I'm the SA. I haven't been able to compile GCC 6.3.0 which I need... (9 Replies)
Discussion started by: PJ_Namias
9 Replies
gnome-vfs-mime-magic.4(4)					   File Formats 					 gnome-vfs-mime-magic.4(4)

NAME
gnome-vfs-mime-magic, gnome-vfs.mime, gnome-vfs.keys - GNOME VFS MIME detection DESCRIPTION
On any modern desktop system, each document type or file type must be given a unique identification name and icon. In GNOME, this informa- tion is used extensively by the file manager, nautilus(1). The primary underlying mechanism for providing such definitions is achieved via gnome-vfs-mime-magic. gnome-vfs-mime-magic contains the default file content sniffers for identifying MIME types. The concept of MIME magic is similar to that of Solaris magic(4). EXTENDED DESCRIPTION
gnome-vfs-mime-magic Each line in the /etc/gnome/gnome-vfs-mime-magic file describes a MIME type. The format of each line is as follows: offset_start[:offset_end] pattern_type pattern [&pattern_mask] mime-type Each line contains the following fields: offset_start Decimal number that, with offset_end, specifies the bytes offset within the file. offset_end Decimal number that, with offset_start, specifies the bytes offset within the file. pattern_type Can be one of the following types: byte | short | long | string | date | beshort | belong | bedate | leshort | lelong | ledate where be stands for Big Endian and le stands for Little Endian. pattern An ASCII string with non-printable characters escaped as hex or octal escape sequences, and spaces and other impor- tant whitespace escaped with a backslash (). pattern_mask A string of hex digits. The mask must be the same specification as the non-ambigous patterns. mime-type A valid MIME type. The magic patterns are matched sequentially from the first entry to the last entry of the list. Therefore, you should put the non-ambigous patterns at the start of the list. Any pattern that requires a deep seek into the file should be placed at the end of the list to reduce performance overhead. When designing new document formats, include an easily recognizable unique magic pattern near the start of the file. A good pattern is is at least four bytes long and contains one or two non-printable characters so that text files are not misidentified. gnome-vfs.mime and gnome-vfs.keys" Apart from file sniffing, GNOME also provide a secondary mechanism to determine MIME types. If a file has been sniffed and its type does not match any of the magic patterns, GNOME looks for files called /usr/share/gnome/mime-info/*.mime and processes these. The format of these files is different to that of pattern magic. Instead of determining the MIME type by reading the content of the file, the MIME type of the file is determined by its extension. The mime info file has the following format: mime_type ext[,prio]: list of extensions for this mime-type regex[,prio]: regular expression that matches the filename More than one ext: and regex: field can be present for a given MIME type. You can also associate a priority for each field. The default priority (prio) is 1, a higher numerical value indicates a higher priority. The indentation before ext: and regex: must be a tab character ( ). The searching sequence implies that the magic pattern file has a higher precedence over the mime info files. As the mime info files are read alphabetically, this also determines matching orders for the file extension. For example, the file FirstFile.mime contains the following definition: application/foo ext: foo and the file SecondFile.mime contains the following definition: application/mini ext: foo The definition in FirstFile.mime will be found first and used. For each MIME info file there must be an associated keys file in the same directory. The key file provides human readable text which can be localized into various languages. The data in these keys files is used by the GNOME file manager, nautilus(1). EXAMPLES
Example 1: Magic pattern definition for PDF file The following entry in the /etc/gnome/gnome-vfs-mime-magic file describes the MIME type of application/pdf: 0 string %PDF- application/pdf The first 5 characters of a PDF file are %PDF-. The symbols % and - differentiate the PDF file from a text file. Example 2: Magic pattern definition for BMP file The following entry in the /etc/gnome/gnome-vfs-mime-magic file describes the MIME type of application/bmp: 0 string BMxxxx 00 00 &0xffff00000000ffff image/bmp The interpretation of this line is as follows: o The first two characters are BM and the seventh and eighth characters are NULL. o The mask 0xffff00000000ffff allows the selction of the first, second, seventh, and eighth characters to be selected for comparison. Example 3: MIME info file definition for application/x-compress The following entry in the /etc/gnome/gnome-vfs-mime-magic file describes the MIME type of application/x-compress: application/x-compress ext: Z This line indicates that the x-compress application searches for files with a .Z extension. The associated keys file entry in the /usr/share/gnome/mime-info/gnome-vfs.mime file is as follows (excluding all localized text): application/x-compress description=compress-compressed file icon_filename=gnome-compressed default_action_type=application category=Packages use_category_default=yes Example 4: MIME info file definition for application/x-compressed-tar The following entry in the /etc/gnome/gnome-vfs-mime-magic file describes the MIME type of application/x-compressed-tar: application/x-compressed-tar regex,2: tar.gz$ ext: tgz This example uses the priority flag to give regex a higher priority than ext, which means that a file with an extension of tar.gz should be matched first (to have a MIME type of application/x-compressed-tar) before tgz. FILES
The following files are used by this application: /etc/gnome/gnome-vfs-mime-magic /usr/share/gnome/mime-info/gnome-vfs.mime /usr/share/gnome/mime-info/gnome-vfs.keys /usr/share/gnome/mime-info/solaris-gnome2.0.mime /usr/share/gnome/mime-info/solaris-gnome2.0.keys ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-vfs | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
nautilus(1), gnome-vfs.applications(4), libgnomevfs-2(3) Latest version of the GNOME Desktop User Guide for your platform. Written by Ghee Teo, Sun Microsystems Inc., 2003. SunOS 5.10 13 Jan 2003 gnome-vfs-mime-magic.4(4)
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy