News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Just started >.>

Started by ClaY, March 30, 2017, 11:54:44 AM

Previous topic - Next topic

ClaY

Hey there.
I'm studying c++ at my college but as you know they won't learn you everything so i started to teach myself... so i started to download c++ programme and i found codeblocks prog so i started to write a small project but it couldn't build it for some reasons
Quote"qq - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).

this is the bug that i find so how can i solve it >.>
Thanks.

Commaster

Please reread the "bug" message carefully. There is a question and some instructions on what to do next in there...

ClaY

Quote from: Commaster on March 30, 2017, 01:34:05 PM
Please reread the "bug" message carefully. There is a question and some instructions on what to do next in there...
I already read it but i couldn't understand anything   ???

ClaY

Is there any setups should i download before i start writing projects?

Miguel Gimenez

You should install MinGW and then configure CB to use it, see:

http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler

You can also unsinstall CB and download CB with MinGW from:

http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01mingw-setup.exe

Next time I suggest Code::Blocks » User forums » Help for this kind of questions.


BlueHazzard

And make sure to not have installed two compilers!!!

rxbarey

can some review this
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>

struct node
{
   int data;
   struct node* next;
   struct node* prev;
   
};

struct node *start=NULL;

struct node* create()

{
   struct node *n;

   n=(struct node*)malloc(sizeof(struct node));
   return(n);   
}

void insbeg()
{
   struct node *temp;
   
   printf("\n ENTER  THE DATA \n");
   scanf("%d",&temp->data);
   temp->prev=NULL;
   temp->next=NULL;
   
   if(start==NULL)
   
   
   start=temp;

else
{
   temp->next=start;
   start->prev=temp;
   start=temp;
}
}

      
int main()
{
   
    while(1)
{
insbeg();
}
getch();
}

stahta01

@rxbarey: Please review and then follow the rules for this website!

http://forums.next.codeblocks.org/index.php/topic,9996.0.html

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]