CLI compilation problem

D

DaTurk

Hi,

I have a strange issue. I'm pretty sure it's just some strage
configuration issue. I have a solution with a couple CLI projects,
and a couple unmanged c++ projects. When I clean, and rebuild the
build breaks. During this build I see it copying the files it has a
dependency on lacally, and then it breaks with errors saying it
doesn't know about them.

But, when I do a subsequent rebuild, it works. I don't quite
understand what I'm missing. THe project that breaks needs the other
CLI project, and a c# library. These are what it loads. Anyone have
any ideas?

Thanks in advance
 
B

Bruno van Dooren [MVP VC++]

I have a strange issue. I'm pretty sure it's just some strage
configuration issue. I have a solution with a couple CLI projects,
and a couple unmanged c++ projects. When I clean, and rebuild the
build breaks. During this build I see it copying the files it has a
dependency on lacally, and then it breaks with errors saying it
doesn't know about them.

But, when I do a subsequent rebuild, it works. I don't quite
understand what I'm missing. THe project that breaks needs the other
CLI project, and a c# library. These are what it loads. Anyone have
any ideas?

I suspect that your build order is wrong.
As a result, proj A wich requires the output of proj B gets built first.
Because B does not yet exist, the build breaks.
then proj B is built.

if you build again the error will disappear because now B already exists.

You can check this if you right-click your solution and then select build
order, or project dependencies.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
D

DaTurk

I suspect that your build order is wrong.
As a result, proj A wich requires the output of proj B gets built first.
Because B does not yet exist, the build breaks.
then proj B is built.

if you build again the error will disappear because now B already exists.

You can check this if you right-click your solution and then select build
order, or project dependencies.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"

I believe that was the problem! Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top