欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Can't debug c++ project because unable to static library start program *.lib

程序员文章站 2023-10-17 15:31:29
Can't debug c++ project because unable to static library start program *.lib Can't debug c++ project because unable to static library start program *. ......
 

i'm using a library (astro.lib) which i've built without problems (i guess this is a release build).

i've also built a project which references the library (it runs as a release exe fine) but i can't debug the project because i get the message 'unable to start program 'astro.lib'.

if i try to debug the lib then i get the same error, so i guess its something to do with not building for debug my lib but not sure how to modify.

i've tried changing the properties pages using msdn info but not sure i'm addressing the correct problem. what changes should i make to the properties pages of the library of linking project?

thanks in advance

i've also built a project which references the library

that's the project you want to debug. you probably just have the wrong project selected as the startup project of your solution. it is marked in bold type in the solution explorer window.

right-click the project that uses the library and select "set as startup project"