cannot open file "mfcsample.lib"

Dear colleagues;

I try to complie the "Viewer3d" provided by the OpenCASCADE 6.1.0, But one error generated listed as blow:

LINK : fatal error LNK1104: cannot open file "mfcsample.lib"
Error executing link.exe.

Viewer3d.exe - 1 error(s), 0 warning(s)

In addiion, I found one solution for the similar problem in the forum is to compile the compile the mfc project located at "C:\\OpenCasacde5.1\\samples\\standard\\mfc\\mfcsamples". however, when i try to do that another two errors generated.

so could you tell me how to solve this problem?

many thanks and waitting for you kind reply.

Cheers

Rajesh Kishore's picture

Hi,
First build the mfcsample , then you will be able to build the other application in that directory. Appart from this if you are getting linker error in mfcsample such as TKdraw.lib not found then remove the Tkdraw.lib from project settings of mfcsample.