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. Linking Error

Linking Error

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestionlearning
6 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I am newly learning windows programming. I am trying to create a sort of simple application. When I try and link my project I get an error reading - fatal error RC1004: unexpected end of file found I am not sure how to deal with this. Any suggections? The error stems from the header file: // define for the application icon #define ICON_T3DX 100 // define for the application cursor #define CURSOR_CROSSHAIR 200 // define for the application music #define SOUND_ID_MUSIC 1 // defines for the top level menu OPTIONS #define MENU_OPTIONS_ID_PRINT 1000 #define MENU_OPTIONS_ID_EXIT 1001 // defines for the top level menu HELP #define MENU_HELP_ABOUT 2000 #define MENU_HELP_INSTRUCTIONS 2001 I am using the header to help with the implementation of resources. If anyone can help me resolve this error, that would be great. Thanks a lot!!!

    S N 2 Replies Last reply
    0
    • L Lost User

      I am newly learning windows programming. I am trying to create a sort of simple application. When I try and link my project I get an error reading - fatal error RC1004: unexpected end of file found I am not sure how to deal with this. Any suggections? The error stems from the header file: // define for the application icon #define ICON_T3DX 100 // define for the application cursor #define CURSOR_CROSSHAIR 200 // define for the application music #define SOUND_ID_MUSIC 1 // defines for the top level menu OPTIONS #define MENU_OPTIONS_ID_PRINT 1000 #define MENU_OPTIONS_ID_EXIT 1001 // defines for the top level menu HELP #define MENU_HELP_ABOUT 2000 #define MENU_HELP_INSTRUCTIONS 2001 I am using the header to help with the implementation of resources. If anyone can help me resolve this error, that would be great. Thanks a lot!!!

      S Offline
      S Offline
      SilverShalkin
      wrote on last edited by
      #2

      did you include the header? :) i've done that alot :( ~SilverShalkin :rose:

      1 Reply Last reply
      0
      • L Lost User

        I am newly learning windows programming. I am trying to create a sort of simple application. When I try and link my project I get an error reading - fatal error RC1004: unexpected end of file found I am not sure how to deal with this. Any suggections? The error stems from the header file: // define for the application icon #define ICON_T3DX 100 // define for the application cursor #define CURSOR_CROSSHAIR 200 // define for the application music #define SOUND_ID_MUSIC 1 // defines for the top level menu OPTIONS #define MENU_OPTIONS_ID_PRINT 1000 #define MENU_OPTIONS_ID_EXIT 1001 // defines for the top level menu HELP #define MENU_HELP_ABOUT 2000 #define MENU_HELP_INSTRUCTIONS 2001 I am using the header to help with the implementation of resources. If anyone can help me resolve this error, that would be great. Thanks a lot!!!

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        #include <stdafx.h>


        Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

        L 2 Replies Last reply
        0
        • N Nish Nishant

          #include <stdafx.h>


          Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I've tried doing that. I get another error, "the file cannot be opened. I checked for it in the IDE file directory and it isn't thete. Any other suggestion?

          1 Reply Last reply
          0
          • N Nish Nishant

            #include <stdafx.h>


            Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Sorry... I did find and include th file in the project afterwards but ut still gives the same error- unexpected end of file found.

            N 1 Reply Last reply
            0
            • L Lost User

              Sorry... I did find and include th file in the project afterwards but ut still gives the same error- unexpected end of file found.

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              You need to #include stdafx.h for all your cpp files


              Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

              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