Hi,

<problem1>
I failed to rebuild (without any modifications) the
source downloaded from the article,
"Rewriting MSIL Code on the Fly with the .NET
Framework Profiling API".

I tried using Microsoft Development Environment 2003
Version 7.1.3088 (Microsoft .NET Framework 1.1 Version
1.1.4322).

This is the error message I received:
Compiling...
ConstraintsChecker.cpp
c:\NETProfilingAPI\CChecker\ConstraintsChecker.cpp(17)
: fatal error C1853: 'Debug/CChecker.pch' precompiled
header file is from a previous version of the
compiler, or the precompiled header is C++ and you are
using it from C (or vice versa)

The author's responsed to my question:
At the time of writing of the article (~
August-September, 2002) I was using VC.NET 2002 (v7.0)
with .NET v1.0 headers to compile my code. I've never
used my code with VC++ .NET 2003. And, since I still
don't have VC.NET 2003 on my machine I cannot tell
you too much about the error you're getting. Make sure
VC.NET 2003 uses .NET 1.0 headers and check for VC.NET
2002/2003 compatibility issues.

<problem2>
Also, I never successfully build a simple C++ "Hello
World" program:
#include <iostream.h>
int main() {
  cout << "Hello World!" << endl;
  return 0;
}
[ERROR on the first line] fatal error C1010:
unexpected end of file while looking for precompiled
header directive

I have installed a complete set of Visual C++ Static
CRT Libraries as discussed in PSS ID Number: Q316343
in MSDN Knowledge Base.

Are there any workarounds for these problems?

Thank you very much beforehand.


sincerely,
Memomana Ryge

Hi,

<problem1>
I failed to rebuild (without any modifications) the
source downloaded from the article you mentioned,
"Rewriting MSIL Code on the Fly with the .NET
Framework Profiling API".

I tried using Microsoft Development Environment 2003
Version 7.1.3088 (Microsoft .NET Framework 1.1 Version
1.1.4322).

This is the error message I received:
Compiling...
ConstraintsChecker.cpp
c:\NETProfilingAPI\CChecker\ConstraintsChecker.cpp(17)
: fatal error C1853: 'Debug/CChecker.pch' precompiled
header file is from a previous version of the
compiler, or the precompiled header is C++ and you are
using it from C (or vice versa)

The author's responsed to my question:
At the time of writing of the article (~
August-September, 2002) I was using VC.NET 2002 (v7.0)
with .NET v1.0 headers to compile my code. I've never
used my code with VC++ .NET 2003. And, since I still
don't have VC.NET 2003 on my machine I cannot tell
you too much about the error you're getting. Make sure
VC.NET 2003 uses .NET 1.0 headers and check for VC.NET
2002/2003 compatibility issues.

<problem2>
Also, I never successfully build a simple C++ "Hello
World" program:
#include <iostream.h>
int main() {
  cout << "Hello World!" << endl;
  return 0;
}
[ERROR on the first line] fatal error C1010:
unexpected end of file while looking for precompiled
header directive

I have installed a complete set of Visual C++ Static
CRT Libraries as discussed in PSS ID Number: Q316343
in MSDN Knowledge Base.

Are there any workarounds for these problems?

Thank you very much beforehand.


sincerely,
Memomana Ryge

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to