Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: websnake on January 26, 2011, 02:23:29 pm

Title: code compliation not working properly
Post by: websnake on January 26, 2011, 02:23:29 pm
I am a newbie in codeblocks (and also newbie in programming  :? ).

when i type something in codeblocks like "in" it show all related result starting from "in" like int, inline, intmax_t, int16_t etc.

but when i type something related from windows library it does not shows anything, like when i type "Get" it should show "GetAsyncKeyStates" or something like that which is related to windows.h.

i am having same problem with every library.

i am using codeblocks 10.5 (windows 7).
Title: Re: code compliation not working properly
Post by: oBFusCATed on January 26, 2011, 02:39:39 pm
Update to one of the latest nightlies.
The problem should be fixed there or C::B's CC should highly improved (there are problems with hairy marco expansions and templates).
Title: Re: code compliation not working properly
Post by: websnake on January 26, 2011, 03:47:58 pm
Update to one of the latest nightlies.
The problem should be fixed there or C::B's CC should highly improved (there are problems with hairy marco expansions and templates).


now i am using the latest nightly builds.

things are now a bit improved but still not bug free.
when i chose to work with a .c file the code completion works properly but when i chose to work with .cpp files i am getting the same problem again.

am i doing something wrong or its a bug in codeblocks.
Title: Re: code compliation not working properly
Post by: ollydbg on January 28, 2011, 08:21:41 am
Update to one of the latest nightlies.
The problem should be fixed there or C::B's CC should highly improved (there are problems with hairy marco expansions and templates).


now i am using the latest nightly builds.

things are now a bit improved but still not bug free.
when i chose to work with a .c file the code completion works properly but when i chose to work with .cpp files i am getting the same problem again.

am i doing something wrong or its a bug in codeblocks.
would you post the steps to produce this bug and show how your code sample?
So that, we can help you and fix these kind of bug.

ollydbg
Title: Re: code compliation not working properly
Post by: websnake on January 30, 2011, 11:28:43 am
the codeblocks is not showing any library functions of any .cpp project till i close the project and reopen it again

Code: [Select]
#include<iostream>
#include<conio.h>
#include<time.h>

using namespace std;

int main()

{
    time_t rawtime;
    struct tm * timeinfo;
    time(&rawtime);
    timeinfo = localtime(&rawtime);
    cout<<asctime(timeinfo);
    getch();
    return 0;

}

when i type this code its showing function time_t, return, struct but its not showing any functions related to time.h library.

and when close and reopen the same file again every thing is working fine. it shows all the time.h and other library functions properly.

i think its a bug and i hope it will get fixed soon.
if anyone knows how can i fix this then please let me know.

(i am using Code::blocks SVN 6931 nightly builds)

off topic question -- does anyone know how to setup codeblocks to work with pspsdk.
my pspsdk is properly working. just need to attach it with codeblocks and compile the program.


 
Title: Re: code compliation not working properly
Post by: ollydbg on January 30, 2011, 01:58:27 pm
the codeblocks is not showing any library functions of any .cpp project till i close the project and reopen it again

Code: [Select]
#include<iostream>
#include<conio.h>
#include<time.h>

using namespace std;

int main()

{
    time_t rawtime;
    struct tm * timeinfo;
    time(&rawtime);
    timeinfo = localtime(&rawtime);
    cout<<asctime(timeinfo);
    getch();
    return 0;

}

when i type this code its showing function time_t, return, struct but its not showing any functions related to time.h library.

and when close and reopen the same file again every thing is working fine. it shows all the time.h and other library functions properly.

i think its a bug and i hope it will get fixed soon.
if anyone knows how can i fix this then please let me know.


thanks, I can confirm this. It was definitely a bug. It seems even the file is saved, the new #included "header" file was not parsed.

Quote
off topic question -- does anyone know how to setup codeblocks to work with pspsdk.
my pspsdk is properly working. just need to attach it with codeblocks and compile the program.
what does this means?? I don't get your idea...