It's UWAweek 48


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 selected article
Showing 1 of 919 articles.
Currently 4 other people reading this forum.

 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

6:20am Wed 14th Sep, Christopher M.

> Hi, is it necessary to compile with -std=c11? > I am getting this error when I compile with this c11 standard, eventhough I have included the string library: > error: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Werror=implicit-function-declaration]
The strdup() function is not part of the C99 or C11 standards (but is, finally, defined in the new C23). However, it has been defined in the POSIX standards for a long time, and this post [help2002] explains how to access it.

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