PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Missing functions?

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
jwillemsen



Joined: 27 Sep 2004
Posts: 10

PostPosted: Wed Oct 20, 2004 12:09 pm    Post subject: Missing functions? Reply with quote

Hi,

I am looking for the following functions which I can't find in the PGI CC header files:
- swab
- towupper
- towlower

Any idea why they are not in the shipped header files?

Johnny
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Oct 20, 2004 1:18 pm    Post subject: Reply with quote

Hi Johnny,


Your system should have the header files installed in "/usr/include". The only header files that come with the PGI compilers are those system header files that we needed to modify for compatability reasons. All others are provide by your Linux distribution.

I believe towupper and towlower are found in the "wctype.h" file and swab is found in "unistd.h". Adding
Code:
#include <wctype.h>
#include <unistd.h>
to your source should provide your program the correct prototype function.

- Mat
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Oct 20, 2004 1:27 pm    Post subject: Reply with quote

I thought I'd mention that we do include header files with our Win32 product. They are located in the "$PGI/nt86/5.2/mingw/include" directory. Note that swab is in "string.h" not "unistd.h".

- Mat
Back to top
View user's profile
jwillemsen



Joined: 27 Sep 2004
Posts: 10

PostPosted: Sun Oct 24, 2004 5:30 am    Post subject: Reply with quote

It seemed an include was missing, only the PGI compiler had a problem with this, GCC not. Fixed this in ACE, thanks for the info
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
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