Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
FixitUP

Compiler errors

Recommended Posts

FixitUP    0

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.

Share this post


Link to post
Share on other sites

allen2    1

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).

Share this post


Link to post
Share on other sites
jaclaz    906

Share this post


Link to post
Share on other sites
FixitUP    0

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

Share this post


Link to post
Share on other sites
FixitUP    0

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

Share this post


Link to post
Share on other sites
FixitUP    0

Thanks jaclaz.

Share this post


Link to post
Share on other sites
allen2    1

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.

Share this post


Link to post
Share on other sites
FixitUP    0

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×