Noob question, I am sure...

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Noob question, I am sure...

Todd MacDermid
Hey all, I'm trying to port some software to Windows, and I'm getting
an odd error when building some files with g++:

g++ -DPACKAGE_NAME=\"cutlass\" -DPACKAGE_TARNAME=\"cutlass\" -DPACKAGE_VERSION=\"0.2.0\" -DPACKAGE_STRING=\"cutlass\ 0.2.0\" -DPACKAGE_BUGREPORT=\"[hidden email]\" -DPACKAGE=\"cutlass\" -DVERSION=\"0.2.0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1  -I. -I. -I../libcutlass/include    -g -O2 -Wall -c -o crypto.o crypto.cpp
In file included from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:246,
                 from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:48,
                 from ../libcutlass/include/cutlass/wrap_types.h:40,
                 from ../libcutlass/include/cutlass.h:108,
                 from crypto.cpp:16:
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2030: error: `BOOLEAN' does not name a type
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2034: error: `SECURITY_CONTEXT_TRACKING_MODE' does not name a type
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2035: error: `BOOLEAN' does not name a type
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2040: error: `BOOLEAN' does not name a type

And so on and so forth, I'll spare you the rest.  Both BOOLEAN and
SECURITY_CONTEXT_TRACKING_MODE are typedefed as BYTE in winnt.h, so I
guessed the BYTE typedef wasn't taking, but if I typedef BYTE myself
in my code, I get a previous typedef error, so it's in there.

I'm using g++ 3.4.2 (mingw-special) under a Cygwin environment in Windows 2K.
If you want to see the exact code I'm failing with, it's available via
subversion at svn://svn.synacklabs.net/cutlass

I'm sure I've dorked something simple up, but I've been stuck on this for
3 days, so any help will be most appreciated.

Thanks!

Todd


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Noob question, I am sure...

Earnie Boyd
On 3:17:30 pm 2005-06-28 Todd MacDermid <[hidden email]> wrote:

> Hey all, I'm trying to port some software to Windows, and I'm getting
> an odd error when building some files with g++:
>
> g++ -DPACKAGE_NAME=\"cutlass\" -DPACKAGE_TARNAME=\"cutlass\"
> -DPACKAGE_VERSION=\"0.2.0\" -DPACKAGE_STRING=\"cutlass\ 0.2.0\"
> -DPACKAGE_BUGREPORT=\"[hidden email]\" -DPACKAGE=\"cutlass\"
> -DVERSION=\"0.2.0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
> -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1  -I. -I. -I../libcutlass/include
> -g -O2 -Wall -c -o crypto.o crypto.cpp In file included from
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:246
> ,                  from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.
> ./include/windows.h:48,
>                  from ../libcutlass/include/cutlass/wrap_types.h:40,
>                  from ../libcutlass/include/cutlass.h:108,
>                  from crypto.cpp:16:
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2030
> : error: `BOOLEAN' does not name a type
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2034
> : error: `SECURITY_CONTEXT_TRACKING_MODE' does not name a type
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2035
> : error: `BOOLEAN' does not name a type
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2040
> : error: `BOOLEAN' does not name a type
>

Do you include <windows.h>?  The order of inclusion of subsequent headers
is important has you should only include <windows.h>.

Earnie



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Noob question, I am sure...

Danny Smith
In reply to this post by Todd MacDermid

From: "Todd MacDermid"

> Hey all, I'm trying to port some software to Windows, and I'm getting
> an odd error when building some files with g++:
>
>
g++ -DPACKAGE_NAME=\"cutlass\" -DPACKAGE_TARNAME=\"cutlass\" -DPACKAGE_VERSION=\
"0.2.0\" -DPACKAGE_STRING=\"cutlass\
0.2.0\" -DPACKAGE_BUGREPORT=\"[hidden email]\" -DPACKAGE=\"cutlass\" -DV
ERSION=\"0.2.0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA
VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST
DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1  -I. -I. -I../libcutlass/include
   -g -O2 -Wall -c -o crypto.o crypto.cpp
> In file included from
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:246,
>                  from
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:48,
>                  from ../libcutlass/include/cutlass/wrap_types.h:40,
>                  from ../libcutlass/include/cutlass.h:108,
>                  from crypto.cpp:16:
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2030: error:
`BOOLEAN' does not name a type
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2034: error:
`SECURITY_CONTEXT_TRACKING_MODE' does not name a type
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2035: error:
`BOOLEAN' does not name a type
> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2040: error:
`BOOLEAN' does not name a type
>

Have a  look in
                 from ../libcutlass/include/cutlass/wrap_types.h

and see if something touches BOOLEAN or BYTE there (maybe in a C++ typename)
Danny



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Noob question, I am sure...

Todd MacDermid
Actually, I figured it out. One of the earlier header files (written by this
project team, so our bad) was using a namespace that was interfering. If
I just moved the #include <windows.h> to before that header, It Just Worked.

Thanks to all that offered help!

Todd

On Wed, Jun 29, 2005 at 09:27:34PM +1200, Danny Smith <[hidden email]> stated:

>
>From: "Todd MacDermid"
>
>> Hey all, I'm trying to port some software to Windows, and I'm getting
>> an odd error when building some files with g++:
>>
>>
>g++ -DPACKAGE_NAME=\"cutlass\" -DPACKAGE_TARNAME=\"cutlass\" -DPACKAGE_VERSION=\
>"0.2.0\" -DPACKAGE_STRING=\"cutlass\
>0.2.0\" -DPACKAGE_BUGREPORT=\"[hidden email]\" -DPACKAGE=\"cutlass\" -DV
>ERSION=\"0.2.0\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA
>VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST
>DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_INTTYPES_H=1  -I. -I. -I../libcutlass/include
>   -g -O2 -Wall -c -o crypto.o crypto.cpp
>> In file included from
>c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:246,
>>                  from
>c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:48,
>>                  from ../libcutlass/include/cutlass/wrap_types.h:40,
>>                  from ../libcutlass/include/cutlass.h:108,
>>                  from crypto.cpp:16:
>> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2030: error:
>`BOOLEAN' does not name a type
>> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2034: error:
>`SECURITY_CONTEXT_TRACKING_MODE' does not name a type
>> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2035: error:
>`BOOLEAN' does not name a type
>> c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:2040: error:
>`BOOLEAN' does not name a type
>>
>
>Have a  look in
>                 from ../libcutlass/include/cutlass/wrap_types.h
>
>and see if something touches BOOLEAN or BYTE there (maybe in a C++ typename)
>Danny
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>MinGW-users mailing list
>[hidden email]
>
>You may change your MinGW Account Options or unsubscribe at:
>https://lists.sourceforge.net/lists/listinfo/mingw-users


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users