0

I am using cpputest library to test my application. I am using scons. when I call SConScriptUtest, I get the following error:

cannot find -lCppUTest cannot find -lCppUTestExt

This is while I have included the path for finding CppUTest and CppUTestExt:

LIBPATH points to where your libraries reside: testenv.Append(LIBPATH = ['../cpputest/lib'])

my ../cpputest/lib path has both CppUTest.lib and CppUTestExt.lib

So why is it not picking up?

Mehdi
  • 113
  • 1
  • 11
  • Are you using the testenv environment to build your test program? testenv.Program(...) If that's not it, can you post the full build command scons generates and the full resulting error? – Kenneth E. Bellock Aug 11 '15 at 17:54
  • @KennethE.Bellock I have my scons code added above. – Mehdi Aug 11 '15 at 18:01
  • SConscript is helpful, but even more so if you can scale it down to a minimal example. Can you post the build line scons generates to make your test executable, and the full resulting error? – Kenneth E. Bellock Aug 11 '15 at 18:08
  • @KennethE.Bellock the problem is building for platform. I was building for posix whereas it's gotta be building for win32 platfrom, thanks for your help anyways. – Mehdi Aug 11 '15 at 18:44

0 Answers0