473,394 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

need help with gcc

forgive me if this is off topic..
i am new to c programming with gcc(using cygwin on WinXP)
I have gtk in my cygwin installation (in lib\gtk-2.0)..and was trying
to compile c code that uses gtk widgets..

...i tried the first example from gtk tutorial(http://www.gtk.org/
tutorial/) and used

gcc mycode.c -o mycode `pkg-config --cflags --libs gtk-2.0`
to compile it
i have pkg-config.exe in the cygwin/bin folder (which is set in
PATH)and still i get error msg
'gcc: `pkg-config: No such file or directory
gcc: gtk-2.0`: No such file or directory
cc1: error: unrecognized command line option "-fcflags"
cc1: error: unrecognized command line option "-flibs"

can anyone tell me how i can get this correctly compiled?
jim
Jan 19 '08 #1
4 1784
jimgardener wrote, On 19/01/08 07:45:
forgive me if this is off topic..
It is. In future please check what is topical *before* posting somewhere.

<snip>
gcc mycode.c -o mycode `pkg-config --cflags --libs gtk-2.0`
to compile it
i have pkg-config.exe in the cygwin/bin folder (which is set in
PATH)and still i get error msg
'gcc: `pkg-config: No such file or directory
<snip>

I suggest asking on the Cygwin mailing lists where they will know how to
get things correctly configured in Cygwin. This is nothing to do with C.
--
Flash Gordon
Jan 19 '08 #2
>
I suggest asking on the Cygwin mailing lists where they will know how to
get things correctly configured in Cygwin. This is nothing to do with C.
--
sorry FG,..beginner's blunder..
in fact i posted this qn to windows.cygwin grp and there was no
response..
anyway thanx for the advise..will be more careful
jim
Jan 19 '08 #3
jimgardener wrote, On 19/01/08 14:16:
>I suggest asking on the Cygwin mailing lists where they will know how to
get things correctly configured in Cygwin. This is nothing to do with C.

sorry FG,..beginner's blunder..
in fact i posted this qn to windows.cygwin grp and there was no
response..
Try the mailing lists rather than a group.
anyway thanx for the advise..will be more careful
No problem.
--
Flash Gordon
Jan 19 '08 #4
Okay, so we already know that this is off-topic, but

jimgardener <ji*********@gmail.comwrote:
[ ... ] and still i get error msg
'gcc: `pkg-config: No such file or directory
^
|
+----- notice the backtick

Is this the *exact* error message ? It's as if your shell treated
the backtick as an ordinary character instead of the beginning of
a shell escape. It passed the string <<`pkg-config>to gcc as a
command-line argument and gcc complained that no such source file
exists. After that it went from bad to worse. You *are* typing
this in a cygwin shell as opposed to a DOS box, right?

Any luck with better cygwin forums ? I haven't looked at www.cygwin.org
in a long time, but you might find good pointers there.
--
pa at panix dot com
Jan 19 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sofia | last post by:
My name is Sofia and I have for many years been running a personals site, together with my partner, on a non-profit basis. The site is currently not running due to us emigrating, but during its...
7
by: Mike Kamermans | last post by:
I hope someone can help me, because what I'm going through at the moment trying to edit XML documents is enough to make me want to never edit XML again. I'm looking for an XML editor that has a...
15
by: drdoubt | last post by:
using namespace std In my C++ program, even after applying , I need to use the std namespace with the scope resolution operator, like, std::cout, std::vector. This I found a little bit...
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
3
by: Bob.Henkel | last post by:
I write this to tell you why we won't use postgresql even though we wish we could at a large company. Don't get me wrong I love postgresql in many ways and for many reasons , but fact is fact. If...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
4
by: Phil | last post by:
k, here is my issue.. I have BLOB data in SQL that needs to be grabbed and made into a TIF file and placed on the client (could be in temp internet dir). The reason we need it in TIF format is...
8
by: Sai Kit Tong | last post by:
In the article, the description for "Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports or Managed Entry Points" suggests the creation of the class ManagedWrapper. If I...
2
by: Michael R. Pierotti | last post by:
Dim reg As New Regex("^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}$") Dim m As Match = reg.Match(txtIPAddress.Text) If m.Success Then 'No need to do anything here Else MessageBox.Show("You need to enter a...
0
by: U S Contractors Offering Service A Non-profit | last post by:
Brilliant technology helping those most in need Inbox Reply U S Contractors Offering Service A Non-profit show details 10:37 pm (1 hour ago) Brilliant technology helping those most in need ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.