I have two C# libraries and a managed C++ library which depends on the
C# libraries.
I have several applications which reference all of these libraries.
Whenever I change from one application to another, the managed C++
library does not build. It generates hundreds of errors. However, if
I do a rebuild of the solution or the C++ project, it builds fine and
all builds thereafter are OK.
Is this a known issue? It's a minor inconvenience but I'd like to fix
it. 6 1219
On Jan 31, 6:15 am, "JS" <jnospams...@gmail.comwrote:
Whenever I change from one application to another, the managed C++
library does not build. It generates hundreds of errors. However, if
I do a rebuild of the solution or the C++ project, it builds fine and
all builds thereafter are OK.
Not sure what you mean by "change from one...to another", but I'm not
an expert at compile options either. Forward references missing
maybe?
RL
I have 2 solutions Solution1 and Solution2. Each one includes my core
libraries which consist of some C# libraries and a managed C++
library.
If I'm working in Solution1, everything compiles OK. Then I close
Solution1 and open Solution2. If I press 'build', the C++ library has
hundreds of errors. I always need to manually select 'rebuild' either
on the entire solution or on this C++ library. I must do this
whenever I open one of my solutions.
On Feb 1, 5:17 am, "JS" <jnospams...@gmail.comwrote:
I have 2 solutions Solution1 and Solution2. Each one includes my core
libraries which consist of some C# libraries and a managed C++
library.
If I'm working in Solution1, everything compiles OK. Then I close
Solution1 and open Solution2. If I press 'build', the C++ library has
hundreds of errors. I always need to manually select 'rebuild' either
on the entire solution or on this C++ library. I must do this
whenever I open one of my solutions.
Sorry I can't help you. Perhaps C# and Managed C++ (which is obsolete
with the advent of C++.NET 2.0?) can't get along. I have hard enough
time getting all the translation units and modules of C++.NET 2.0 to
talk to one another (the other day I had a conflict between SortList
in the MS collection class and the equally named SortList from the
generic collection class, that I resolved after stenuous effort using
namespaces and scope resolution opeators; what a bear for a simple
demonstration program).
I pity you professional programmers.
Best of luck,
RL
"JS" <jn*********@gmail.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
>I have 2 solutions Solution1 and Solution2. Each one includes my core
libraries which consist of some C# libraries and a managed C++
library.
If I'm working in Solution1, everything compiles OK. Then I close
Solution1 and open Solution2. If I press 'build', the C++ library has
hundreds of errors. I always need to manually select 'rebuild' either
on the entire solution or on this C++ library. I must do this
whenever I open one of my solutions.
From what little I know of your goal, it seems to be that you need to create
a single solution with two projects. Making one project dependent on the
other should insure that the builds are done in the correct order.
Regards,
Will www.ivrforbeginners.com
Each of my solutions includes the library projects. The C++ project
references the C# library, and the solution refererences both of
these.
i.e.:
Solution1
- Project1 (WinForms exe)
[references: System.* dlls, CSharpLib, CPPLib]
- CSharpLib (class library)
[references: System.* dlls]
- CPPLib (class library)
[references: System.* dlls, CSharpLib]
Solution2
- Project2 (WinForms exe)
[references: System.* dlls, CSharpLib, CPPLib]
- CSharpLib (class library)
[references: System.* dlls]
- CPPLib (class library)
[references: System.* dlls, CSharpLib]
The situation is that I have Solution1 open, and it is building fine.
Then I close Solution1 and open Solution2. I must rebuild either the
entire Solution2 or else the CPPLib or else CPPLib generates hundreds
of errors.
As I said in my first post, this is annoying but I can live with it.
I was thinking that this might be known behavior and there would be a
way to fix it. It sounds like I'm the only one, so it must have
something to do with my project configurations, I guess.
Also, I am not aware of managed C++ being obsoleted with .Net 2.0 (as
a previous responder suggested). I have a lot of calls I'm making
into some C and C++ dll's so rather than using interop, I decided to
make a managed C++ dll.
Thanks.
"JS" <jn*********@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
Each of my solutions includes the library projects. The C++ project
references the C# library, and the solution refererences both of
these.
i.e.:
Solution1
- Project1 (WinForms exe)
[references: System.* dlls, CSharpLib, CPPLib]
- CSharpLib (class library)
[references: System.* dlls]
- CPPLib (class library)
[references: System.* dlls, CSharpLib]
Solution2
- Project2 (WinForms exe)
[references: System.* dlls, CSharpLib, CPPLib]
- CSharpLib (class library)
[references: System.* dlls]
- CPPLib (class library)
[references: System.* dlls, CSharpLib]
The situation is that I have Solution1 open, and it is building fine.
Then I close Solution1 and open Solution2. I must rebuild either the
entire Solution2 or else the CPPLib or else CPPLib generates hundreds
of errors.
As I said in my first post, this is annoying but I can live with it.
I was thinking that this might be known behavior and there would be a
way to fix it. It sounds like I'm the only one, so it must have
something to do with my project configurations, I guess.
Perhaps you are sharing an output directory, with different compiler
options? Use a different intermediate and output directory for each
solution.
>
Also, I am not aware of managed C++ being obsoleted with .Net 2.0 (as
a previous responder suggested). I have a lot of calls I'm making
into some C and C++ dll's so rather than using interop, I decided to
make a managed C++ dll.
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Amos |
last post by:
My Solution has three different projects: GUI, Api, Match.
Project GUI includes a reference to Match.dll and Project Match includes a
reference to Api.dll . Project Api doesn't include any...
|
by: JoeS |
last post by:
Is there anyway to share a single pch file between
projects in VC 7.0? I have 300+ projects each of which
creates its own pch. All projects include the exact same
header files in the precompiled...
|
by: Robert W. |
last post by:
I'm building a solution that has 1 component for the Desktop and 1 component
for the Pocket PC. (Though this isn't a mobile question).
I have a data library that will be shared on both platforms....
|
by: Bill Rust |
last post by:
I have a rather large ATL project that I converted from VC++ 6. Whenever I
build it, VS.NET concludes the whole thing is out of date and rebuilds the
entire project. This happens even immediately...
|
by: Pinnguy |
last post by:
Hello, I have started to use managed C++ in VS 2003. I have several .NET
class libraries written in MC++.
I am finding the rebuild tendencies in VS to be very annoying. If I make a
minor change...
|
by: BK-Chicago |
last post by:
I am in the midst of porting a massive MFC application from VS6.0 to VS8.0.
While i have fixed most of the compile time errors, i do have quite a linker
error that i have not been able to resolve....
|
by: Massimiliano Polito |
last post by:
It seems the option '/useenv' is no longer supported in in Microsoft
Visual .NET 2005. If I run 'devenv /?' I get the following:
------------------------
Microsoft (R) Visual Studio Version...
|
by: Sami Lakka |
last post by:
I have a solution with a two projects. The first project contains my classes
and an executable using those classes. The second project contains unit
tests for the classes. Because the unit test...
|
by: Duncan Smith |
last post by:
I have a VS2005 C++ MFC project which #imports a type library. The
goal is to introduce some managed code eventually, but for starters I
just need to set the /clr compiler option and build the...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |