User forums > General (but related to Code::Blocks)

Issue with Code Completion with the Cygwin compiler

<< < (2/3) > >>

stahta01:
Adding this "$(TARGET_COMPILER_DIR)\lib\gcc\i686-pc-cygwin\4.9.3\include\c++" to
Settings -> Compiler
Select Cygwin Compiler
Tab "Search Directory"
Sub Tab: "Compiler"

Note: CB 13.12 was very slow on working compared to recent nightly and I had to close and re-open the project on both of them.

Tim S.

DavidBittner:
Thank you so much! That's very strange. Any idea as to why this issue arises? Thanks a ton, though!

stahta01:

--- Quote from: DavidBittner on July 10, 2015, 08:18:16 pm ---Thank you so much! That's very strange. Any idea as to why this issue arises? Thanks a ton, though!

--- End quote ---

CC had no idea of where to look for the header files; on MinGW Compiler likely it has the location imbedded in it (inside the CB Compiler Plugin).
So, a better fix would be to add code to the Cygwin code in CB that adds this; but, that is a lot of work for any a few users.
If I every decide to use Cygwin on a regular basis I might try to add the code to the CB Compiler Plugin for Cygwin.

Tim S.

DavidBittner:
Hrm, interesting. Suppose that all makes sense. Maybe I'll read into some CB plugin dev to see if I can do it myself. Thanks a lot for all the help!

ollydbg:

--- Quote from: stahta01 on July 10, 2015, 08:25:34 pm ---
--- Quote from: DavidBittner on July 10, 2015, 08:18:16 pm ---Thank you so much! That's very strange. Any idea as to why this issue arises? Thanks a ton, though!

--- End quote ---

CC had no idea of where to look for the header files; on MinGW Compiler likely it has the location imbedded in it (inside the CB Compiler Plugin).
So, a better fix would be to add code to the Cygwin code in CB that adds this; but, that is a lot of work for any a few users.
If I every decide to use Cygwin on a regular basis I might try to add the code to the CB Compiler Plugin for Cygwin.

Tim S.

--- End quote ---
CC get the compiler location from CB compiler plugin. For example, if you have c:/mingw set in compiler, then CC will see that "c:/mingw/g++.exe" is the c++ compiler. And it will run this compiler with "-E" option to fetch all the build in include file search paths.

I'm not sure how it is done for Cygwin, basically, it should be the same. I haven't check the source code yet.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version