It's UWAweek 48

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying the 2 articles in this topic
Showing 2 of 919 articles.
Currently 1 other person reading this forum.


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
1:03pm Wed 5th Oct, ANONYMOUS

Hello, We are currently trying to use realpath() to get the absolute pathnames of filenames in a filelist, however we keep getting an implicit declaration warning when calling this function. The header files we have currently included are: limits.h stdio.h stdlib.h fcntl.h unistd.h When looking at the manual for realpath(), I noticed only limits.h and stdlib.h are used, so I'm not sure if we've perhaps missed a header file that is needed to use realpath() or if there is another issue causing this? Thanks in advance.


SVG not supported

Login to reply

👍?
helpful
4:02pm Wed 5th Oct, Christopher M.

ANONYMOUS wrote:
> When looking at the manual for realpath(), I noticed only limits.h and stdlib.h are used, so I'm not sure if we've perhaps missed a header file that is needed to use realpath() or if there is another issue causing this?
Not quite true. (On Linux) the manual also states that you need to define certain pre-processor standard constants to 'get' the required standard. See the example in [help2002]

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy