Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Error with libraries?

Error with libraries?

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiohelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    satcat
    wrote on last edited by
    #1

    Hi all! I've done a Visual C++ application and it works perfectly, but when I have done another similar one using the same include statements and in the same order, I get these errors: C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : error C2146: syntax error : missing ';' before identifier 'FAR' C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : fatal error C1004: unexpected end of file found I never got these errors before and the changes that I've done doesn't matter this header "speech.h" (I think so at least). Any ideas? Thank you in advance!

    H R 2 Replies Last reply
    0
    • S satcat

      Hi all! I've done a Visual C++ application and it works perfectly, but when I have done another similar one using the same include statements and in the same order, I get these errors: C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : error C2146: syntax error : missing ';' before identifier 'FAR' C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : fatal error C1004: unexpected end of file found I never got these errors before and the changes that I've done doesn't matter this header "speech.h" (I think so at least). Any ideas? Thank you in advance!

      H Offline
      H Offline
      Heywood Jablome
      wrote on last edited by
      #2

      If memory serves me you are missing a semicolon at the end of the class prototyped in speech.h

      S 1 Reply Last reply
      0
      • H Heywood Jablome

        If memory serves me you are missing a semicolon at the end of the class prototyped in speech.h

        S Offline
        S Offline
        satcat
        wrote on last edited by
        #3

        I don't know what you mean... (I'm just a newbie) The error must be out of the speech.h code because it works ok with other applications and it's the same for all of them. Where should be that missing semicolon? Thanks!

        1 Reply Last reply
        0
        • S satcat

          Hi all! I've done a Visual C++ application and it works perfectly, but when I have done another similar one using the same include statements and in the same order, I get these errors: C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : error C2146: syntax error : missing ';' before identifier 'FAR' C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : fatal error C1004: unexpected end of file found I never got these errors before and the changes that I've done doesn't matter this header "speech.h" (I think so at least). Any ideas? Thank you in advance!

          R Offline
          R Offline
          Ryan Binns
          wrote on last edited by
          #4

          Try using #include <windows.h> before you include speech.h

          Ryan

          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups