Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Compiler errors

- - - - -

  • Please log in to reply
7 replies to this topic

#1
FixitUP

FixitUP

    Newbie

  • Banned
  • 47 posts
  • Joined 17-November 12
  • OS:XP Pro x86
  • Country: Country Flag
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.


How to remove advertisement from MSFN

#2
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06
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).

#3
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,419 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

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

Yes.
http://homepage.ntlw...no-answers.html

Standard Litany needed:
http://homepage.ntlw...ard-litany.html

and BTW, wrong sub-forum, should go here:
http://www.msfn.org/...s-cmdbatch-etc/

jaclaz

#4
FixitUP

FixitUP

    Newbie

  • Banned
  • 47 posts
  • Joined 17-November 12
  • OS:XP Pro x86
  • Country: Country Flag
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

#5
FixitUP

FixitUP

    Newbie

  • Banned
  • 47 posts
  • Joined 17-November 12
  • OS:XP Pro x86
  • Country: Country Flag

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

#6
FixitUP

FixitUP

    Newbie

  • Banned
  • 47 posts
  • Joined 17-November 12
  • OS:XP Pro x86
  • Country: Country Flag


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

Yes.
http://homepage.ntlw...no-answers.html

Standard Litany needed:
http://homepage.ntlw...ard-litany.html

and BTW, wrong sub-forum, should go here:
http://www.msfn.org/...s-cmdbatch-etc/

jaclaz


Thanks jaclaz.

#7
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06
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.

#8
FixitUP

FixitUP

    Newbie

  • Banned
  • 47 posts
  • Joined 17-November 12
  • OS:XP Pro x86
  • Country: Country Flag
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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN