Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZMQ.cpp:35: error: ‘ZMQ_VERSION’ was not declared in this scope #14

Closed
hsjunnesson opened this issue Nov 8, 2010 · 2 comments
Closed

Comments

@hsjunnesson
Copy link

    $ ./autogen.sh
    $ ./configure JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home"
    $ ./make
    Making all in src
    CLASSPATH=.:./.:$CLASSPATH /usr/bin/javac -d .    org/zeromq/ZMQ.java
    echo timestamp > classdist_noinst.stamp
    CLASSPATH=.:./.:$CLASSPATH /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
    CLASSPATH=.:./.:$CLASSPATH /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
    CLASSPATH=.:./.:$CLASSPATH /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
    CLASSPATH=.:./.:$CLASSPATH /usr/bin/javah -jni -classpath . org.zeromq.ZMQ
    make  all-am
    /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/Cellar/zeromq/2.0.8/include   -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/include -Wall -g -O2 -MT libjzmq_la-ZMQ.lo -MD -MP -MF .deps/libjzmq_la-ZMQ.Tpo -c -o libjzmq_la-ZMQ.lo `test -f 'ZMQ.cpp' || echo './'`ZMQ.cpp
    libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/Cellar/zeromq/2.0.8/include -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/include -Wall -g -O2 -MT libjzmq_la-ZMQ.lo -MD -MP -MF .deps/libjzmq_la-ZMQ.Tpo -c ZMQ.cpp  -fno-common -DPIC -o .libs/libjzmq_la-ZMQ.o
    ZMQ.cpp: In function ‘jint Java_org_zeromq_ZMQ_version_1full(JNIEnv*, _jclass*)’:
    ZMQ.cpp:35: error: ‘ZMQ_VERSION’ was not declared in this scope
    ZMQ.cpp: In function ‘jint Java_org_zeromq_ZMQ_version_1major(JNIEnv*, _jclass*)’:
    ZMQ.cpp:44: error: ‘ZMQ_VERSION_MAJOR’ was not declared in this scope
    ZMQ.cpp: In function ‘jint Java_org_zeromq_ZMQ_version_1minor(JNIEnv*, _jclass*)’:
    ZMQ.cpp:53: error: ‘ZMQ_VERSION_MINOR’ was not declared in this scope
    ZMQ.cpp: In function ‘jint Java_org_zeromq_ZMQ_version_1patch(JNIEnv*, _jclass*)’:
    ZMQ.cpp:62: error: ‘ZMQ_VERSION_PATCH’ was not declared in this scope
    ZMQ.cpp: In function ‘jint Java_org_zeromq_ZMQ_make_1version(JNIEnv*, _jclass*, jint, jint, jint)’:
    ZMQ.cpp:74: error: ‘ZMQ_MAKE_VERSION’ was not declared in this scope
    make[2]: *** [libjzmq_la-ZMQ.lo] Error 1
    make[1]: *** [all] Error 2
    make: *** [all-recursive] Error 1
@gonzus
Copy link
Contributor

gonzus commented Nov 8, 2010

You need to be using the latest version of 0MQ (form the master or maint branch) in order to compile the Java binding. Please make sure you are doing that and report back. Thanks.

@gonzus
Copy link
Contributor

gonzus commented Feb 23, 2011

I will close this issue. Feel free to open a new one if necessary.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants