Thread: compiler error

  1. #1
    Registered User
    Join Date
    Apr 2002

    compiler error

    I am new to C++ and C and I have to compile this DLL for a project at work. When I go to compile it I get this error.

    Build : warning : failed to (or don't know how to) build 'C:\CSTUFF\VSCAN\vscan\Debug\vscan.pch'
    c:\cstuff\vscan\vscan\vscan.cpp(17) : fatal error C1083: Cannot open precompiled header file: 'Debug/vscan.pch': No such file or directory
    Error executing cl.exe.

    vscan.obj - 1 error(s), 1 warning(s)

    I have created a win32 dll before when I was experimenting and trying to learn how to do it and I never ran into this problem before. I created it the same way, so I don't know why I wouldn't be able to create the vscan.pch file. Can anyone shed some light on this for me? Thanks.

  2. #2
    If you are using VC++, go to Project Settings, under the C/C++ tab, and search for Use precompiled headers. select Dont use from the popup list. It will fix ur problem


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 04:35 PM
  2. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  3. error: template with C linkage
    By michaels-r in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2006, 08:11 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM