Menu

#430 Wrong include order of files

open
nobody
None
5
2012-09-26
2004-10-23
No

There's a file in my project called file.h and another
file in the same dir that #includes it. wxwidgets also
has a file by the same name.
when i ctrl+click it (and also on compilation), it
includes the wxwidgets one instead of the correct file.

After researching it a bit,
it seems that TCppParser.GetFullFilename
(Vcl/Parser/CppParser.pas) isn't working correctly,
although GetFullFilename seems to search in the same
dir as the including file. What's wrong?

The ctrl-clicking call to GetFullFilename is found in
editor.pas

Discussion

  • Colin Laplace

    Colin Laplace - 2004-11-17

    Logged In: YES
    user_id=25510

    was the file includes into <> or "" ?
    if you have <file.h> then it should open the wx file, if it
    was "file.h" then it should open your file.

    Colin

     
  • Ori Avtalion

    Ori Avtalion - 2004-11-17

    Logged In: YES
    user_id=854801

    It was "file.h"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.