2
I created an extremely simple code just to test the Code::Blocks
, but no matter what I do, always returns the following error:
collect2.exe: error: ld returned 1 exit status
I still don’t understand what I’m missing. the code goes here:
#include <stdio.h>
#include <stdlib.h>
int main(){
int A;
printf("Digite um valor: ");
scanf("%d", &A);
printf("O valor digitado foi: ", &A);
return 0;
}
This message has nothing to do with the code, it is perfectly compilable (although it does not do what you want, as seen in the dvm response). There is some problem with your compiler. You are sure that this is the only message shown? Most likely you have some before her explaining what happened.
– Guilherme Bernal