PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Compilate code in the c++ error
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
mkcolg



Joined: 30 Jun 2004
Posts: 6141
Location: The Portland Group Inc.

PostPosted: Tue May 14, 2013 2:42 pm    Post subject: Reply with quote

Quote:
But as it does to generate an exe file?
Sorry, I'm not sure what you mean. Does it still not fine the kernels32.lib? Are you getting a different error?

- Mat
Back to top
View user's profile
lodi



Joined: 29 Nov 2012
Posts: 9

PostPosted: Wed May 15, 2013 8:16 am    Post subject: Reply with quote

Thank's
No error about the kernel32lib,
but how compilate for file .exe in the command line ???
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6141
Location: The Portland Group Inc.

PostPosted: Wed May 15, 2013 12:28 pm    Post subject: Reply with quote

Quote:
but how compilate for file .exe in the command line ???


The most basic would be:
Code:
pgcpp mysourcefile.cpp

which creates an exe called "mysourcefile.exe".

You change the target exe name via the "-o" flag:
Code:
pgcpp mysourcefile.cpp -o mytest.exe

which will create an exe called "mytest.exe".

From there you may add other flags and/or libraries. Though, I'll refer you to the PGI User's Guide for details.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group