It appears that an include path directive is missing on the command line.
Hunt through the Intel compiler and the native documentation 
http://mojo.codehaus.org/maven-native/native-maven-plugin/usage.html and find 
the section in the pom that allows one to specify include files/paths for the 
compiler.
It might be that you will experiment with the <compilerStartOptions>..


-----Original Message-----
From: Beuchat José [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 24, 2007 7:53 AM
To: [email protected]
Subject: Maven native plugin


Hello, 

 

I want to use the maven "native plugin" to compile C++ project. The compilator 
is ok, but I've problems with the libraries. 

 

Here the error message: 

 

D:\MavenTests\my-app>mvn package

[INFO] Scanning for projects...

[INFO] 
----------------------------------------------------------------------------

[INFO] Building my-app

[INFO]    task-segment: [package]

[INFO] 
----------------------------------------------------------------------------

[INFO] [native:initialize]

[INFO] [native:compile]

[INFO] icl -ID:\MavenTests\my-app\src\main\native -o 
D:\MavenTests\my-app\target\test.

obj -c D:\MavenTests\my-app\src\main\native\test.cpp

Intel(R) C++ Compiler for 32-bit applications, Version 9.1    Build 20060706Z 
Package

ID: W_CC_C_9.1.028

Copyright (C) 1985-2006 Intel Corporation.  All rights reserved.

 

test.cpp

D:\MavenTests\my-app\src\main\native\test.cpp(1): catastrophic error: could not 
open s

ource file "iostream"

  #include <iostream>

                     ^

 

compilation aborted for D:\MavenTests\my-app\src\main\native\test.cpp (code 4)

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Error executing command line. Exit code:4

 

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2 seconds

[INFO] Finished at: Tue Apr 24 16:51:47 CEST 2007

[INFO] Final Memory: 4M/9M

[INFO] ------------------------------------------------------------------------

 

 

 

 

 

 

 

Could you help me? Or give me an example of the pom.xml file with specified 
libraries?

 

Sincerely 

 

Beuchat José

Informatiker

ISS AG

Allmendstrasse 11

CH - 2563 Port / Schweiz

[EMAIL PROTECTED]

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to