Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
FixitUP

Compiler errors

8 posts in this topic

I am getting these compiler errors. Can someone help me diagnose what I am doing wrong ?

Thanks,

Andy

16 0 C:\z_keep\SynKit.h In file included from C:\z_keep\SynKit.h

7 C:\z_keep\Disabler.cpp from C:\z_keep\Disabler.cpp

6 20 C:\z_keep\SynWraps.h comdef.h: No such file or directory.

0

Share this post


Link to post
Share on other sites

You're missing comdef.h the default include directories. Posting which compiler you're using might help (it look like visual C++ but could be anything).

0

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

I am using DevC++ and am getting these errors.

Can someone help me please.

Thanks.

Compiler: MinGW GCC 4.7.0 32-bit

Executing gcc.exe...

gcc.exe "c:\program files\dev-cpp\mingw32\include\comutil.h" -o "c:\program files\dev-cpp\mingw32\include\comutil.exe" -I"C:\Program Files\Dev-Cpp\MinGW32\include" -L"C:\Program Files\Dev-Cpp\MinGW32\lib" -static-libstdc++ -static-libgcc

I can post the .cpp file if that will help.

What's confusing is that there are different versions of the header files.

In file included from c:\program files\dev-cpp\mingw32\include\comutil.h:17:0:

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:113:19: error: expected declaration specifiers or '...' before 'return'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:304:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:330:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:345:22: error: invalid suffix "ui8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:361:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:397:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:428:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:454:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:480:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:516:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:531:23: error: invalid suffix "ui64" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:572:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:580:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:587:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:597:1: error: unknown type name '__forceinline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:599:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'UInt8ToChar'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:615:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:623:21: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:630:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:640:1: error: unknown type name '__forceinline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:642:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ByteToChar'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:658:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:666:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:666:48: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:673:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:684:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:709:1: error: unknown type name '__forceinline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:711:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ShortToChar'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:726:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:734:41: error: invalid suffix "ui8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:741:23: error: invalid suffix "ui8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:757:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:793:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:824:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:850:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:876:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:907:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:933:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:948:23: error: invalid suffix "ui64" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1099:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1107:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1114:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1125:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1150:1: error: unknown type name '__forceinline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1152:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'UShortToChar'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1167:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1175:22: error: invalid suffix "ui8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1182:23: error: invalid suffix "ui8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1198:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1299:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1307:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1307:48: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:1314:22: error: invalid suffix "i8" on integer constant

0

Share this post


Link to post
Share on other sites

You're missing comdef.h the default include directories. Posting which compiler you're using might help (it look like visual C++ but could be anything).

Thanks for the help.

Compiler: MinGW GCC 4.7.0 32-bit

Executing gcc.exe...

gcc.exe "c:\program files\dev-cpp\mingw32\include\comutil.h" -o "c:\program files\dev-cpp\mingw32\include\comutil.exe" -I"C:\Program Files\Dev-Cpp\MinGW32\include" -L"C:\Program Files\Dev-Cpp\MinGW32\lib" -static-libstdc++ -static-libgcc

I can post the .cpp file if that will help.

What's confusing is that there are different versions of the header files.

In file included from c:\program files\dev-cpp\mingw32\include\comutil.h:17:0:

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:113:19: error: expected declaration specifiers or '...' before 'return'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:304:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:330:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:345:22: error: invalid suffix "ui8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:361:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:397:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:428:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:454:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:480:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:516:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:531:23: error: invalid suffix "ui64" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:572:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:580:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:587:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:597:1: error: unknown type name '__forceinline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:599:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'UInt8ToChar'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:615:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__inline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:623:21: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:630:22: error: invalid suffix "i8" on integer constant

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:640:1: error: unknown type name '__forceinline'

c:\program files\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/intsafe.h:642:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before

0

Share this post


Link to post
Share on other sites

Thanks jaclaz.

0

Share this post


Link to post
Share on other sites

As you're using mingw gcc, you should try installing it in a path without space. Also using Msys is heavily recommended (it will solve many errors (path/missing lib/...) as it is an already configured dev environment.

0

Share this post


Link to post
Share on other sites

Thanks Allen.

My code is MS specific. I dled MS VC to assemble it., but it is one royal pain to use.

It can't even recognize directories or the files in them. :-(

Andy

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.