| View previous topic :: View next topic |
| Author |
Message |
jwillemsen
Joined: 27 Sep 2004 Posts: 10
|
Posted: Wed Oct 20, 2004 12:09 pm Post subject: Missing functions? |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Wed Oct 20, 2004 1:18 pm Post subject: |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Wed Oct 20, 2004 1:27 pm Post subject: |
|
|
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 |
|
 |
jwillemsen
Joined: 27 Sep 2004 Posts: 10
|
Posted: Sun Oct 24, 2004 5:30 am Post subject: |
|
|
| 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 |
|
 |
|