Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Codeview and C files

0 views
Skip to first unread message

donna harvey

unread,
Oct 9, 1997, 3:00:00 AM10/9/97
to

I would like some help using Codeview. I am learning C programming, and
would like to trace programs occasionally. When I attempt to start Codeview
using 'CV program.c' it tells me it's not an executable file. I then try
'CV program' (which was compiled) and it brings up the assembly code...also
says: "No symbolic information". Try to display the source and it says it
cannot open the source file ....

O.K., next thing is I select File, and Open program.c. There is my source
code -- BUT -- when I try to trace or step through it, the whole program
runs. Also, when I attempt to set watch expressions or breakpoints, the
system replies "Unknown Symbol".

What information am I missing here ?

Thank you

Pat Harvey

RogerHA

unread,
Oct 10, 1997, 3:00:00 AM10/10/97
to

In article <61jaek$i...@news.charweb.org>, web...@charweb.org (donna
harvey) writes:

>I would like some help using Codeview. I am learning C programming, and
>would like to trace programs occasionally. When I attempt to start Codeview

><snip>

>O.K., next thing is I select File, and Open program.c. There is my source
>code -- BUT -- when I try to trace or step through it, the whole program
>runs. Also, when I attempt to set watch expressions or breakpoints, the
>system replies "Unknown Symbol".
>
>What information am I missing here ?
>
>

What you are missing is that you have to compile and link with codeview
options selected. From memory this includes -Zi for the compiler and /CO
for the linker, look it up in the docs or the /h option gives a brief
summary. If you are using MSVC use the Debug option and the system
generates the command line options for you. A bunch of extra information is
tagged on to the end of the .EXE.

Roger H Abbott
RHA (Minisystems) Ltd


Tris Orendorff

unread,
Oct 15, 1997, 3:00:00 AM10/15/97
to

In article <61jaek$i...@news.charweb.org>, web...@charweb.org (donna harvey) wrote:
> I would like some help using Codeview. I am learning C programming, and
> would like to trace programs occasionally. When I attempt to start Codeview
> using 'CV program.c' it tells me it's not an executable file. I then try
> 'CV program' (which was compiled) and it brings up the assembly code...also
> says: "No symbolic information". Try to display the source and it says it
> cannot open the source file ....
>
> O.K., next thing is I select File, and Open program.c. There is my source
> code -- BUT -- when I try to trace or step through it, the whole program
> runs. Also, when I attempt to set watch expressions or breakpoints, the
> system replies "Unknown Symbol".
>
> What information am I missing here ?
>
> Thank you
>
> Pat Harvey

Hi,

You need to go into visual studio (or the equivalent program) and turn on the
link and compile options for Codeview debugging. Press F1 and look for help
on using Codeview. This will show you how to set things up.


Sincerely,

Tris Orendorff

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d++ s a C+ UC++++ P+ L E- W+ N++ o- K++ w+ O+ M !V PS+ PE Y+ PGP
t+ !5 X- R- tv--- b++ DI++ D+ G+ e+ h---- r+++ y+
------END GEEK CODE BLOCK------


0 new messages