Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
You need to define _XOPEN_SOURCE 500 before your includes:
_XOPEN_SOURCE 500
#define _XOPEN_SOURCE 500 #include<unistd.h>
Otherwise, the unistd.h header won't see the macro definition.
unistd.h
I have searched for a few examples and not found one that is similar to what I have and what I want to achieve.
I have 2 lists
class object1 { string obj1_name; int obj1_qty; } List<obj