Please help with linker problems....

This is a discussion on Please help with linker problems.... within the Windows Programming forums, part of the Platform Specific Boards category; I've just begun to learn about programming in win32 API, and all my previous examples worked more or less perfectly ...

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    14

    Please help with linker problems....

    I've just begun to learn about programming in win32 API, and all my previous examples worked more or less perfectly (after a while), but my latest program, with dialog boxes, won't compile.

    There is, as far as I can tell, no problem with the source code, it's the linking process. I use DevC++ 5 as my compiler (but I program in C).

    Anyway, the error I get upon trying to compile my project (Windowsmenu.dev) is

    [Build Error] No rule to make target "../../Documents", needed by 'Windowsmenu_private.res'. Stop.

    Also, when I look in my working directory, there doesn't even seem to be a file called Windpwsmenu_private.res!

    Please help me.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    No rule to make target
    That's a make error not a linker error.
    there doesn't even seem to be a file called Windpwsmenu_private.res
    Because it hasn't been created, thus the no rule to make target error.

    Check your project settings and ensure you have included the resource script as part of the project. Also make sure that windres is properly configured as your resource compiler. Also check the makefile itself to ensure there is a rule for compiling the *.res file and for linking it into the final exe.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linker errors
    By jw232 in forum C++ Programming
    Replies: 3
    Last Post: 06-12-2009, 12:56 PM
  2. Linker problem... no idea
    By cyreon in forum C Programming
    Replies: 2
    Last Post: 04-03-2009, 02:53 PM
  3. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  4. winsock linking problems
    By Calef13 in forum Windows Programming
    Replies: 2
    Last Post: 08-29-2007, 08:54 AM
  5. MSVis-Studio C++ libraries and linker errors
    By kellydj in forum Windows Programming
    Replies: 10
    Last Post: 03-12-2002, 01:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21