[Cmake] CMake with CNI: beginner Question.

William A. Hoffman billlist at nycap.rr.com
Thu Jul 15 13:59:53 EDT 2004


I am not really sure what is wrong.  I would suggest that
you try:
make VERBOSE=1 
Then take a look at the command line used, then compare
it to the command line that did work with your previous build
system.  There must be some difference.  I have never used
CNI, so I don't know what flags are required.   You should
be able to set the missing flags in CMAKE_CXX_FLAGS.

-Bill


At 01:52 AM 7/15/2004, Alain-Serge Nagni wrote:
>Hello,
>        I just dowload CMake and I would like to use
>Cygnus Native Interface (CNI) in my code.  Since I'm
>using Cmake to generake the make file, I cannot build
>any more my project. Do I need to do something special
>to handle that (Include a CMAke Modules)? 
>
>Best regards,
>Alain-Serge
>
>
>Here is the message error:
>
>Building object file cwebuserssocket.o...
>In file included from
>/usr/local/include/java/lang/Object.h:16,
>                 from /usr/local/include/gcj/cni.h:16,
>                 from
>/home/asnagni/Test/oruswebserver/gui/cwebuserssocket.cpp:24:
>/usr/local/include/gcj/javaprims.h:15: error: mixing
>C++ and Java catches in a 
>single translation unit
>
>
>        
>                
>__________________________________
>Do you Yahoo!?
>New and Improved Yahoo! Mail - 100MB free storage!
>http://promotions.yahoo.com/new_mail 
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake 



More information about the Cmake mailing list