It's UWAweek 47

help3002

This forum is provided to promote discussion amongst students enrolled in CITS3002 Computer Networks.

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. How do I ask a good question?

Displaying selected article
Showing 1 of 503 articles.
Currently 39 other people reading this forum.


 UWA week 18 (1st semester, week 9) ↓
SVG not supported

Login to reply

👍?
helpful
5:48am Thu 2nd May, Christopher M.

I've just been having another look at this, and the simplest solution appears to be to just use the default language dialects, without providing specific command-line arguments. On Linux, using a recent version of gcc (gcc --version, probably 13), the default dialect is gnu17 (which provides your getaddrinfo()). On macOS, using a recent version of clang (clang --version, probably 15), the default dialect is c11 (which also provides your getaddrinfo(), because Apple love to bundle everything in). So, the best approach on either platform seems to be to just run cc without any options for the language standard/dialect.

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  8:08AM Aug 25 2024
Privacy policy