Unable to compile gtk+2.0.
Operating System: Windows
compilers:GCC
Source File:J:\gtk\main.c
We expanded gtk+-bundle_3.10.4-20131202_win32.zip to J:\gtk\gtk.
set PATH=gtk\bin\;%PATH%
cmd
Run and at the command prompt
gcc-ohbf.exe main.c`pkg-config --cflags --libsgtk+-2.0
When I ran
gcc:error:`pkg-config:No such file or directory
gcc:error:gtk+-2.0:No such file or directory
gcc:error:unrecognized command line option '--cflags'
gcc:error:unrecognized command line option '--libs'
said the error.
How do I compile it?
windows c gtk
If you use the FOR command, cmd.exe may not be impossible, but since it's roundabout, it might be better to use UNIX shells such as bash.exe honestly.
FOR/F ["Option"]% Variable IN('Command') DO Command [Command Parameters]
For the or usebackq option:
FOR/F ["Option"]% Variable IN(`Command')DO Command [Command Parameters]
Example.
FOR/F"delims="%i IN('pkg-config --cflags --libsgtk+-2.0')[email protected] main.c%i
Windows command prompts do not support backquotes.
Run from the shell using msys or msys2, or write a command in Makefile and run mingw32-make
.
add
By the way...
gcc-ohbf.exe main.c`pkg-config --cflags --libs gtk+-2.0
The last backquote is missing.
562 Who developed the "avformat-59.dll" that comes with FFmpeg?
566 Understanding How to Configure Google API Key
563 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
853 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
589 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.