🔒 Locked
STD list
Advertisement
Original Post
Hiya, Working on a project as part of a contract at the moment, and i've received a pile of code that I need to turn into a product :) However when I compile part of it I keep getting std list errors such as: error C2039: 'list' : is not a member of 'std' from lines like: typedef std::list <DlsWirelineSlot> DlsWirelineSlotList; Any ideas what could cause this? list is being included and everything seems fine. Thanks, Adam
Are you sure that it's #include <list> and not #include <list.h>?
Quote:
Original post by WoolyUK
I have that already :(
your compiler seems to be of a entierly diffrent opinion.
sounds really really odd, but try moving the list include just above the typedef to see if that remedies the problem.
come up with a minimal example that doesn't work
e.g.
does this compile for you?
e.g.
#include <list>int main() { std::list<int> mints; return 0;}does this compile for you?
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement