Trans is correct there are examples:
cl does not have 
/out:c:\Users\Steve\my-cpp-app\target\my-cpp-app-1.0-SNAPSHOT.exe
what cl sees is the /o parameter as the object specifier of 
ut:c:\Users\Steve\my-cpp-app\target\my-cpp-app-1.0-SNAPSHOT.exe

its been a while since i've used cl but im fairly certain you need to implement 
link obj ==> exe
my personal preference is to jump into cygwin and gcc for compile and ld for 
linking instead
that way the build will work for unix or windows
Info on maven-nar-plugin:
http://mojo.codehaus.org/maven-native/native-maven-plugin/

Info on implementing ants cpptasks:
http://duns.github.com/maven-nar-plugin/cpptasks.html

Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Mon, 21 Mar 2011 20:27:29 -0700
> Subject: Re: Maven native:link naming exe
> From: dant...@gmail.com
> To: users@maven.apache.org
> 
> which example(s) are you having problem with?  they are under
> native-maven-plugin/src/it
> 
> It seems you are using msvc 2008, did you configure the correct factory?
> 
> -Dan
> 
> On Mon, Mar 21, 2011 at 4:01 PM, stevek <st...@dsoft-solutions.co.uk> wrote:
> > Do you recommend a particular example or examples. Could you point me to 
> > these please.
> >
> > Steve
> >  ----- Original Message -----
> >  From: Dan Tran [via Maven]
> >  To: stevek
> >  Sent: Monday, March 21, 2011 10:10 PM
> >  Subject: Re: Maven native:link naming exe
> >
> >
> >  do you have  chance to take a look at existing examples?
> >
> >  If the examples dont work out for you, perhaps a pom file will help to
> >  figure out the issue
> >
> >  -D
> >
> >  On Mon, Mar 21, 2011 at 2:00 PM, stevek <[hidden email]> wrote:
> >
> >  > Hi All
> >  >
> >  > New to Maven and trying to figure out how I might use it for C++ 
> > projects on
> >  > a windows platform. Downloaded Maven 3.0.2 and trying to use the Native
> >  > Maven plugin. Using compiler provider msvc and compilerExecutable as cl I
> >  > have been able to get source compiled. However when I try to link it 
> > seem to
> >  > be using the wrong cl option i.e. /out rather than /Fe. I get the 
> > following
> >  > type of output:
> >  >
> >  > [INFO] --- native-maven-plugin:1.0-alpha-7:link (default-cli) @ 
> > my-cpp-app
> >  > ---
> >  > [INFO] cmd.exe /X /C "cl
> >  > /out:c:\Users\Steve\my-cpp-app\target\my-cpp-app-1.0-SNAPSHOT.exe
> >  > target\objs\HelloWorldApp.obj"
> >  > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for
> >  > 80x86
> >  > Copyright (C) Microsoft Corporation.  All rights reserved.
> >  >
> >  > cl : Command line warning D9035 : option 'o' has been deprecated and 
> > will be
> >  > removed in a future release
> >  > Microsoft (R) Incremental Linker Version 9.00.21022.08
> >  > Copyright (C) Microsoft Corporation.  All rights reserved.
> >  >
> >  > /out:HelloWorldApp.exe
> >  > /out:ut:c:\Users\Steve\my-cpp-app\target\my-cpp-app-1.0-SNAPSHOT.exe
> >  > target\objs\HelloWorldApp.obj
> >  > LINK : fatal error LNK1104: cannot open file
> >  > 'ut:c:\Users\Steve\my-cpp-app\target\my-cpp-app-1.0-SNAPSHOT.exe'
> >  >
> >  > Thanks in advance
> >  >
> >  > Steve
> >  >
> >  >
> >  > --
> >  > View this message in context: 
> > http://maven.40175.n5.nabble.com/Maven-native-link-naming-exe-tp4239754p4239754.html
> >  > Sent from the Maven - Users mailing list archive at Nabble.com.
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: [hidden email]
> >  > For additional commands, e-mail: [hidden email]
> >  >
> >  >
> >
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: [hidden email]
> >  For additional commands, e-mail: [hidden email]
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> >
> >  If you reply to this email, your message will be added to the discussion 
> > below:
> >  
> > http://maven.40175.n5.nabble.com/Maven-native-link-naming-exe-tp4239754p4241740.html
> >  To unsubscribe from Maven native:link naming exe, click here.
> >
> > --
> > View this message in context: 
> > http://maven.40175.n5.nabble.com/Maven-native-link-naming-exe-tp4239754p4243013.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
                                          

Reply via email to