www.digitalmars.com         C & C++   DMDScript  

c++.command-line - command line switch

reply "Steve Adams" <adamss ascinet.com> writes:
What is the command line switch that will allow forms like

typedef struct foo { ...... } foo;

for things that are in winsock2.h
Jun 05 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
What do you mean?
That should work just as is AFAIK.



Steve Adams wrote:

 What is the command line switch that will allow forms like

 typedef struct foo { ...... } foo;

 for things that are in winsock2.h
Jun 05 2002
parent "Steve Adams" <adamss ascinet.com> writes:
Turns out it was an include order problem.  I had already included windows.h
which included winsock2.h.  A second include of winsock2.h was causing the
problem.


"Jan Knepper" <jan smartsoft.cc> wrote in message
news:3CFE664C.785F9ADA smartsoft.cc...
 What do you mean?
 That should work just as is AFAIK.



 Steve Adams wrote:

 What is the command line switch that will allow forms like

 typedef struct foo { ...... } foo;

 for things that are in winsock2.h
Jun 05 2002