Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA X 1204: RTL symbols not recognized
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Dec 02 2003 :  09:25:49 AM  Show Profile
It seems that something has changed in the way that headers are parsed for symbols in VA X.

Most of the symbols which are defined somewhere in the standard headers of the runtime library, are not recognized by VA X, but sometimes by the syntax coloring.

Examples are sscanf(), _i64toa(), and a few others. When you type them, they are shown properly as functions, after a few seconds they are re-colored in black and underlined. Definition bar shows nothing. Symbol unknown.

When I for example directly include <stdlib.h> in the cpp file, the symbols are found. But when its included in the standard header file, they are not.

That is pretty important stuff.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 07 2004 :  2:52:48 PM  Show Profile
i am unable to reproduce this with VS .NET 2002 and VAX 1246

i have added a new cpp file to my project, and the total contents of the file is:


void test_fn()
{
    char szBuffer;
    sscanf(szBuffer);
}


not the best C++ code ever but this should be ample to test this.
there are no #include's at all. VAX has now had over 2 minutes by my clock, and sscanf is still coloured as a function, and it is also italic. i have static symbols in italic turned on.

when i place the caret in sscanf the VAX wizard updates to show me the prototype of this function.

zen is the art of being at one with the two'ness

Edited by - feline on Aug 07 2004 2:53:28 PM
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Aug 09 2004 :  1:50:02 PM  Show Profile
As I say in my post: "When I for example directly include <stdlib.h> in the cpp file, the symbols are found. But when its included in the standard header file, they are not."
Just try that. I can repro it. Dont know if static symbols has anything to do with it, but I dont use it.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Aug 09 2004 :  7:14:56 PM  Show Profile
oops, sorry about that. i have now tried the cpp file:

#include <stdio.h>

void test_fn()
{
    char *szBuffer = "102";
    int count;
    sscanf(szBuffer, "%d", &count);
}


with .NET 2002 it will not compile with stdlib.h
this file is fine, with static symbols turned on or off.

switching to:
#include "main.h"

void test_fn()
{
    char *szBuffer = "102";
    int count;
    sscanf(szBuffer, "%d", &count);
}


where main.h file includes stdio.h, and i still cannot reproduce this problem.

when you say the "standard header file", do you simply mean one of your own header files?

my header file, in total, is:


#include <stdio.h>

/**
This is first line of comment.

BEWARE: Here goes another text, that was intentionally separated 
from the surrounding text.

Very usefull table:
col1         |  col2   | col3    | col4
some_value11 |         | value13 | 
             | value22 |         | value24 

Some long strange explanation starts here.
*/
static int copyFile(const char *pszFrom, const char *pszTo);


i was testing another bug report with this project, which is where the odd comment came from. it is as if there is something about your standard header file that is confusing VAX.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Aug 10 2004 :  11:46:54 AM  Show Profile
My stdinc.h is an huge pot which contains all the definitions and includes I use in all projects. Its not a really plain file, there are some #if's but nothing that you dont find also in the sdk headers.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000