did you setup environemnt ? like INCLUDE, LIB ?

-D


On 4/24/07, Beuchat José <[EMAIL PROTECTED]> wrote:

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]




Reply via email to