swig jni problem - java-native-interface

I am trying to use swig tool for my ".c" files.
i run the following commands ,
$swig -java example.i
$gcc -c example.c example_wrap.c -I/c/jdk1.3.1/include -I/c/jdk1.3.1/include/win32
Then i got the following error.
example_wrap.c:135:17: error: jni.h: No such file or directory
example_wrap.c:159: error: expected ‘)’ before ‘*’ token
example_wrap.c:201: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Java_exampleJNI_My_1variable_1set’
example_wrap.c:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘JNICALL’
example_wrap.c:223: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘JNICALL’
example_wrap.c:237: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘JNICALL’
example_wrap.c:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘JNICALL’
where will be jni.h will be located. and how do i specify the path to include that.

Are you really using JDK 1.3? that is a pretty old version.
On my system its located: /usr/lib/jvm/java-6-sun-1.6.0.20/include/jni.h So I would think what you've already done with should be enough... Maybe there is some issue with either this older JDK, or your install?

Related

When compile llvm 3.1, why get error: expected primary-expression before ‘>’ token

For some reason, I need to install llvm 3.1 or llvm 3.0, but I'm getting this error when during make.
[ 5%] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o
In file included from /home/ubuntu/llvm/utils/TableGen/AsmMatcherEmitter.cpp:103:0:
/home/ubuntu/llvm/include/llvm/ADT/PointerUnion.h: In member function ‘int llvm::PointerUnion3<PT1, PT2, PT3>::is() const’:
/home/ubuntu/llvm/include/llvm/ADT/PointerUnion.h:266:26: error: expected primary-expression before ‘>’ token
return Ty(Val).is<T>();
^
/home/ubuntu/llvm/include/llvm/ADT/PointerUnion.h:266:28: error: expected primary-expression before ‘)’ token
return Ty(Val).is<T>();
^
/home/ubuntu/llvm/include/llvm/ADT/PointerUnion.h: In member function ‘T llvm::PointerUnion3<PT1, PT2, PT3>::get() const’:
/home/ubuntu/llvm/include/llvm/ADT/PointerUnion.h:279:27: error: expected primary-expression before ‘>’ token
return Ty(Val).get<T>();
^'
/home/ubuntu/llvm/include/llvm/ADT/PointerUnion.h:279:29: error: expected primary-expression before ‘)’ token
return Ty(Val).get<T>();
^
I guess there might be a compatibility issue between llvm 3.0 and gcc 7.0.0, so I installed gcc-4.6.3, and use this cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/home/ubuntu/install -DCMAKE_CXX_LINK_FLAGS="-Wl,-rpath,$HOME/gcc463/install -L$HOME/gcc463/install" -G "Unix Makefiles" ../llvm to configure. But the same error still occurs. Anybody knows why and how to fix it? Thanks!!
Try passing -std=c++98 or if that does not work then -std=c++11. I'm afraid this maybe because of incompatibilities in different C++ versions.
Additionally, you may have to remove -std=c++14 from the CXXFLAGS if it is there. This is the default for g++7.
So I installed gcc-4.6.3, and use this
Did you change the CMAKE_C_COMPILER and CMAKE_CXX_COMPILER flag so that cmake can use the gcc-4.6 instead?
hth,

Installing red carpet -v '3.3.3'

I currently have Redcarpet 3.1.2, using OS X El Capitan 10.11.2
I am trying to run 'bundle exec jekyll serve' but it seems that I had to run a bundle install. This is where the install errors-out
Installing redcarpet 3.3.3 (was 3.3.2) with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/TLuu/Documents/Sides/theresaluu.github.io/vendor/bundle/gems/redcarpet-3.3.3/ext/redcarpet
/Users/TLuu/.rbenv/versions/2.0.0-p247/bin/ruby -r ./siteconf20160101-37132-138gbyg.rb extconf.rb
creating Makefile
current directory: /Users/TLuu/Documents/Sides/theresaluu.github.io/vendor/bundle/gems/redcarpet-3.3.3/ext/redcarpet
make "DESTDIR=" clean
current directory: /Users/TLuu/Documents/Sides/theresaluu.github.io/vendor/bundle/gems/redcarpet-3.3.3/ext/redcarpet
make "DESTDIR="
compiling autolink.c
couldn't understand kern.osversion `15.2.0'
In file included from autolink.c:23:
buffer.h:29:20: error: stdint.h: No such file or directory
In file included from autolink.c:23:
buffer.h:47: error: expected specifier-qualifier-list before ‘uint8_t’
In file included from autolink.c:24:
autolink.h:37: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
autolink.h:41: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
autolink.h:45: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
autolink.h:49: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
autolink.c:26:20: error: string.h: No such file or directory
autolink.c:27:20: error: stdlib.h: No such file or directory
autolink.c:28:19: error: stdio.h: No such file or directory
autolink.c:29:19: error: ctype.h: No such file or directory
autolink.c:36: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
autolink.c:58: error: expected ‘)’ before ‘*’ token
autolink.c:142: error: expected ‘)’ before ‘*’ token
autolink.c:171: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
autolink.c: In function ‘sd_autolink__www’:
autolink.c:178: error: ‘data’ undeclared (first use in this function)
autolink.c:178: error: (Each undeclared identifier is reported only once
autolink.c:178: error: for each function it appears in.)
autolink.c:181: warning: incompatible implicit declaration of built-in function ‘strlen’
autolink.c: At top level:
autolink.c:207: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
autolink.c: In function ‘sd_autolink__email’:
autolink.c:216: error: ‘uint8_t’ undeclared (first use in this function)
autolink.c:216: error: expected ‘;’ before ‘c’
autolink.c:218: error: ‘c’ undeclared (first use in this function)
autolink.c:221: warning: incompatible implicit declaration of built-in function ‘strchr’
autolink.c:231: error: expected ‘;’ before ‘c’
autolink.c:247: error: ‘data’ undeclared (first use in this function)
autolink.c: At top level:
autolink.c:262: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
autolink.c: In function ‘sd_autolink__url’:
autolink.c:269: error: ‘data’ undeclared (first use in this function)
autolink.c:278: warning: incompatible implicit declaration of built-in function ‘strlen’
make: *** [autolink.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/TLuu/Documents/Sides/theresaluu.github.io/vendor/bundle/gems/redcarpet-3.3.3 for inspection.
Results logged to /Users/TLuu/Documents/Sides/theresaluu.github.io/vendor/bundle/extensions/x86_64-darwin-12/2.0.0-static/redcarpet-3.3.3/gem_make.out
An error occurred while installing redcarpet (3.3.3), and Bundler cannot continue.
Make sure that `gem install redcarpet -v '3.3.3'` succeeds before bundling.
I suspect that this is a problem the arose from the last OS X update (Dec 15, 2015).

'System' is not a namespace-name

I am tying to use some .Net namespaces in my c++ code. From here I have found, how can I do that. In my code I have:
#include <iostream>
using namespace System;
using namespace System::Data;
using namespace System::Data::Sql;
using namespace Microsoft::Sqlserver::Server;
using namespace System::Data::SqlTypes;
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
If I run it I get these errors:
0:08:06: Running steps for project Test...
10:08:06: Configuration unchanged, skipping qmake step.
10:08:06: Starting: "/usr/bin/make"
g++ -c -m64 -pipe -g -Wall -W -DQT_WEBKIT -I/usr/share/qt4/mkspecs/linux-g++-64 -I../Test -I../Test -I. -o main.o ../Test/main.cpp
../Test/main.cpp:2:17: error: 'System' is not a namespace-name
../Test/main.cpp:2:23: error: expected namespace-name before ';' token
../Test/main.cpp:3:17: error: 'System' has not been declared
../Test/main.cpp:3:25: error: 'Data' is not a namespace-name
../Test/main.cpp:3:29: error: expected namespace-name before ';' token
../Test/main.cpp:4:17: error: 'System' has not been declared
../Test/main.cpp:4:31: error: 'Sql' is not a namespace-name
../Test/main.cpp:4:34: error: expected namespace-name before ';' token
../Test/main.cpp:5:17: error: 'Microsoft' has not been declared
../Test/main.cpp:5:39: error: 'Server' is not a namespace-name
../Test/main.cpp:5:45: error: expected namespace-name before ';' token
../Test/main.cpp:6:17: error: 'System' has not been declared
../Test/main.cpp:6:31: error: 'SqlTypes' is not a namespace-name
../Test/main.cpp:6:39: error: expected namespace-name before ';' token
make: *** [main.o] Error 1
10:08:06: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project Test (kit: Desktop)
When executing step 'Make'
10:08:06: Elapsed time: 00:00.
what should I do to solve this problem?
By the way, I have read this and this posts, but I could not understand, what should I do with /clr in my cpp code?

Code::Blocks WxWidget error - No Target! You should use wx-config program for compilation flags?

I can't get the default WxWidget template that comes with Code::Blocks to compile. The error I receive is error "No Target! You should use wx-config program for compilation flags! (amongst others)
Google led me to some links but I can't seem to figure it out
One similar thread I found; http://forums.codeblocks.org/index.php?topic=10122.0
"The problem is moste likely, that you have wxwisgets installed in a non standard directory tree."
wx-config --list
Reports:
wx-config --prefix=/opt --list
Reports:
Is this correct? I can't tell.
Another similar thread; http://www.justlinux.com/forum/archive/index.php/t-105554.html
The person in that topic ended up adding g++ 'wx-config --cflags' -o wxTest wxTest.cpp as a compilation/linking flag but I tried adding that to "Linker Settings -> Other linker options" in Code::Blocks and it doesn't seem to do anything.
Linker:
Includes:
I find this whole linker business extremely confusing and I can't figure out where I'm going wrong on this.
Full error list:
/var/wxWidgets-2.8.12/include/wx/defs.h|42|error: #error "No Target! You should use wx-config program for compilation flags!"|
/var/wxWidgets-2.8.12/include/wx/gtk/cursor.h|40|error: ISO C++ forbids declaration of ‘GdkCursor’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/cursor.h|40|error: expected ‘;’ before ‘*’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/app.h|55|error: ‘guint’ does not name a type|
/var/wxWidgets-2.8.12/include/wx/gtk/app.h|65|error: ISO C++ forbids declaration of ‘GdkVisual’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/app.h|65|error: expected ‘;’ before ‘*’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/colour.h|26|error: ISO C++ forbids declaration of ‘GdkColor’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/colour.h|26|error: expected ‘,’ or ‘...’ before ‘&’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/colour.h|42|error: ‘GdkColormap’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/colour.h|45|error: ISO C++ forbids declaration of ‘GdkColor’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/colour.h|45|error: expected ‘;’ before ‘*’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/region.h|59|error: expected ‘)’ before ‘*’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/region.h|61|error: ISO C++ forbids declaration of ‘GdkRegion’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/region.h|61|error: expected ‘;’ before ‘*’ token|
/var/wxWidgets-2.8.12/include/wx/window.h|1133|error: ‘WXWidget’ does not name a type|
/var/wxWidgets-2.8.12/include/wx/window.h|1135|error: ‘WXWidget’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/window.h|1293|error: field ‘m_palette’ has incomplete type|
/var/wxWidgets-2.8.12/include/wx/window.h||In member function ‘wxPalette wxWindowBase::GetPalette() const’:|
/var/wxWidgets-2.8.12/include/wx/window.h|1142|error: return type ‘struct wxPalette’ is incomplete|
/var/wxWidgets-2.8.12/include/wx/window.h|1142|error: ‘m_palette’ was not declared in this scope|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: expected initializer before ‘*’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ was not declared in this scope|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: typedef ‘CMPFUNC_wxArraywxArrayGdkWindows’ is initialized (use decltype instead)|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ was not declared in this scope|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘pItem1’ was not declared in this scope|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ was not declared in this scope|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘pItem2’ was not declared in this scope|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ISO C++ forbids declaration of ‘_wxArraywxArrayGdkWindows’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: expected ‘;’ before ‘&’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: expected ‘;’ before ‘_wxArraywxArrayGdkWindows’|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ISO C++ forbids declaration of ‘_wxArraywxArrayGdkWindows’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: expected ‘;’ before ‘&’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: expected ‘;’ before ‘_wxArraywxArrayGdkWindows’|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ISO C++ forbids declaration of ‘_wxArraywxArrayGdkWindows’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: expected ‘;’ before ‘&’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: expected ‘;’ before ‘int’|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘CMPFUNC_wxArraywxArrayGdkWindows’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ does not name a type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ does not name a type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|19|error: ‘_wxArraywxArrayGdkWindows’ does not name a type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|132|error: ‘WXWidget’ does not name a type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|171|error: ISO C++ forbids declaration of ‘GtkWidget’ with no type|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|171|error: ‘GtkWidget’ declared as a ‘virtual’ field|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|171|error: expected ‘;’ before ‘*’ token|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|172|error: ‘GtkWidget’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|186|error: ‘GtkWidget’ has not been declared|
/var/wxWidgets-2.8.12/include/wx/gtk/window.h|187|error: ‘GtkWidget’ has not been declared|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
I understand that the answer is right in front of me in one of those threads, but due to my inexperience I can't seem to apply the solutions to my situation. I gave up after 1 hour of trying random things.
I have no experience with codeblocks, but wx-config gives you the flags and libraries you need to work with wxWidgets.
wx-config --cxxflags
will give you the compiler flags, like include directories and #defines. On my system this gives me
-I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
On the other side
wx-config --libs
will give you the library path and libraries for linking. Which on my system results in
-L/usr/local/lib -pthread -lwx_gtk2u_xrc-2.9 -lwx_gtk2u_html-2.9 -lwx_gtk2u_qa-2.9 -lwx_gtk2u_adv-2.9 -lwx_gtk2u_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9
So you could probably just use the outputs of those commands and enter them to the respective options in Code::Blocks.
An alternative could be to use CMake to generate a simple wxWidgets application, let it build the Code::Blocks project and then hijack that for your own application.

BASS 2.4.4 Error When Making

I'm trying to make the BASS 2.4.4 library for my Linux Ubuntu Hardy Heron, but when I run make I'm getting many errors, see:
[ubuntu#eeepc:~/Desktop/bass24-linux] make
make -C 3dtest
make[1]: Entering directory `/home/ubuntu/Desktop/bass24-linux/3dtest'
cc -Os -I/home/ubuntu/Desktop/bass24-linux -L/home/ubuntu/Desktop/bass24-linux -lbass -Wl,-rpath,/home/ubuntu/Desktop/bass24-linux `pkg-config gtk+-2.0 --cflags --libs` `pkg-config libglade-2.0 --cflags --libs` -export-dynamic -D'GLADE_PATH="/home/ubuntu/Desktop/bass24-linux/3dtest/"' 3dtest.c -o 3dtest
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package libglade-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglade-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglade-2.0' found
3dtest.c:6:21: error: gtk/gtk.h: No such file or directory
3dtest.c:7:25: error: glade/glade.h: No such file or directory
3dtest.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
3dtest.c:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
3dtest.c:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
3dtest.c: In function ‘Error’:
3dtest.c:39: error: ‘GtkWidget’ undeclared (first use in this function)
3dtest.c:39: error: (Each undeclared identifier is reported only once
3dtest.c:39: error: for each function it appears in.)
3dtest.c:39: error: ‘dialog’ undeclared (first use in this function)
3dtest.c:39: error: ‘win’ undeclared (first use in this function)
3dtest.c:39: error: ‘GTK_DIALOG_DESTROY_WITH_PARENT’ undeclared (first use in this function)
3dtest.c:40: error: ‘GTK_MESSAGE_ERROR’ undeclared (first use in this function)
3dtest.c:40: error: ‘GTK_BUTTONS_OK’ undeclared (first use in this function)
3dtest.c: At top level:
3dtest.c:47: error: expected ‘)’ before ‘*’ token
3dtest.c: In function ‘UpdateButtons’:
3dtest.c:55: error: ‘glade’ undeclared (first use in this function)
3dtest.c: At top level:
3dtest.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ListSelectionChange’
3dtest.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘FileExtensionFilter’
3dtest.c:88: error: expected ‘)’ before ‘*’ token
3dtest.c:118: error: expected ‘)’ before ‘*’ token
3dtest.c:133: error: expected ‘)’ before ‘*’ token
3dtest.c:138: error: expected ‘)’ before ‘*’ token
3dtest.c:143: error: expected ‘)’ before ‘*’ token
3dtest.c:149: error: expected ‘)’ before ‘*’ token
3dtest.c:155: error: expected ‘)’ before ‘*’ token
3dtest.c:162: error: expected ‘)’ before ‘*’ token
3dtest.c:169: error: expected ‘)’ before ‘*’ token
3dtest.c:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Update’
3dtest.c: In function ‘main’:
3dtest.c:251: error: ‘glade’ undeclared (first use in this function)
3dtest.c:253: error: ‘win’ undeclared (first use in this function)
3dtest.c:256: error: ‘ListSelectionChange’ undeclared (first use in this function)
3dtest.c:259: error: ‘GtkTreeView’ undeclared (first use in this function)
3dtest.c:259: error: ‘list’ undeclared (first use in this function)
3dtest.c:260: error: ‘GtkTreeViewColumn’ undeclared (first use in this function)
3dtest.c:260: error: ‘col’ undeclared (first use in this function)
3dtest.c:262: error: ‘GtkCellRenderer’ undeclared (first use in this function)
3dtest.c:262: error: ‘renderer’ undeclared (first use in this function)
3dtest.c:265: error: ‘GtkListStore’ undeclared (first use in this function)
3dtest.c:265: error: ‘liststore’ undeclared (first use in this function)
3dtest.c:265: error: ‘G_TYPE_STRING’ undeclared (first use in this function)
3dtest.c:271: error: ‘GtkFileFilter’ undeclared (first use in this function)
3dtest.c:271: error: ‘filter’ undeclared (first use in this function)
3dtest.c:272: error: ‘filesel’ undeclared (first use in this function)
3dtest.c:272: error: ‘GTK_FILE_CHOOSER_ACTION_OPEN’ undeclared (first use in this function)
3dtest.c:273: error: ‘GTK_STOCK_CANCEL’ undeclared (first use in this function)
3dtest.c:273: error: ‘GTK_RESPONSE_CANCEL’ undeclared (first use in this function)
3dtest.c:273: error: ‘GTK_STOCK_OPEN’ undeclared (first use in this function)
3dtest.c:273: error: ‘GTK_RESPONSE_ACCEPT’ undeclared (first use in this function)
3dtest.c:277: error: ‘GTK_FILE_FILTER_FILENAME’ undeclared (first use in this function)
3dtest.c:277: error: ‘FileExtensionFilter’ undeclared (first use in this function)
3dtest.c:290: error: ‘Update’ undeclared (first use in this function)
make[1]: *** [3dtest] Error 1
make[1]: Leaving directory `/home/ubuntu/Desktop/bass24-linux/3dtest'
make: *** [3dtest] Error 2
[ubuntu#eeepc:~/Desktop/bass24-linux]
What is wrong?
Remember that when I try to install the GTK and Glade -dev library's I got this error: libgtk2.0-0 (=2.12.9-3ubuntu5) but 2.12.9-4ubuntu3 is to be installed and when I try to install the libgtk2.0-0 by downloading it I got this error: Error: A later version is already installed
Actually, that's only one error: it didn't find the gtk headers. Do you have libgtk2.0-dev installed?
It's a separate package which contains the header files, and is not usually installed by default. You'll need it for compilation, even though the libraries are installed.
Perhaps you should add the directory containing gtk+-2.0.pc
to the PKG_CONFIG_PATH environment variable
No package gtk+-2.0 found
Perhaps you should add the directory containing libglade-2.0.pc
to the PKG_CONFIG_PATH environment variable
No package libglade-2.0 found
It looks like it failed to find the gtk+-2.0 and libglade-2.0 packages. Do you have them installed? Did you try adding the paths to those packages to the PKG_CONFIG_PATH like it says?