Created
March 21, 2018 22:28
-
-
Save pgbarletta/0e8749be41474ba38fc00b81a0765964 to your computer and use it in GitHub Desktop.
gcc_output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tes.c:6:25: error: initializer element is not constant | |
CHFL_TRAJECTORY* file = chfl_trajectory_open("1M14.pdb", 'r'); | |
^~~~~~~~~~~~~~~~~~~~ | |
tes.c:7:21: error: initializer element is not constant | |
CHFL_FRAME* frame = chfl_frame(); | |
^~~~~~~~~~ | |
tes.c:8:1: warning: data definition has no type or storage class | |
chfl_trajectory_read(file, frame); | |
^~~~~~~~~~~~~~~~~~~~ | |
tes.c:8:1: warning: type defaults to ‘int’ in declaration of ‘chfl_trajectory_read’ [-Wimplicit-int] | |
tes.c:8:1: warning: parameter names (without types) in function declaration | |
tes.c:8:1: error: conflicting types for ‘chfl_trajectory_read’ | |
In file included from /home/german/labo/18/chemfiles/build/install/include/chemfiles.h:15:0, | |
from tes.c:1: | |
/home/german/labo/18/chemfiles/build/install/include/chemfiles/capi/trajectory.h:51:25: note: previous declaration of ‘chfl_trajectory_read’ was here | |
CHFL_EXPORT chfl_status chfl_trajectory_read( | |
^~~~~~~~~~~~~~~~~~~~ | |
tes.c:12:29: error: expected ‘)’ before ‘&’ token | |
chfl_frame_positions(frame, &positions, &natoms); | |
^ | |
tes.c:14:26: error: initializer element is not constant | |
size_t* less_than_five = malloc((size_t)natoms * sizeof(size_t)); | |
^~~~~~ | |
tes.c:18:1: error: expected identifier or ‘(’ before ‘for’ | |
for (uint64_t i=0; i<natoms; i++) { | |
^~~ | |
tes.c:18:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token | |
for (uint64_t i=0; i<natoms; i++) { | |
^ | |
tes.c:18:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token | |
for (uint64_t i=0; i<natoms; i++) { | |
^~ | |
tes.c:25:8: error: expected declaration specifiers or ‘...’ before string constant | |
printf("Atoms with x < 5:\n"); | |
^~~~~~~~~~~~~~~~~~~~~ | |
tes.c:26:1: error: expected identifier or ‘(’ before ‘for’ | |
for (size_t i=0; i<matched; i++) { | |
^~~ | |
tes.c:26:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token | |
for (size_t i=0; i<matched; i++) { | |
^ | |
tes.c:26:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token | |
for (size_t i=0; i<matched; i++) { | |
^~ | |
tes.c:30:1: warning: data definition has no type or storage class | |
free(less_than_five); | |
^~~~ | |
tes.c:30:1: warning: type defaults to ‘int’ in declaration of ‘free’ [-Wimplicit-int] | |
tes.c:30:1: warning: parameter names (without types) in function declaration | |
tes.c:30:1: error: conflicting types for ‘free’ | |
In file included from tes.c:3:0: | |
/usr/include/stdlib.h:483:13: note: previous declaration of ‘free’ was here | |
extern void free (void *__ptr) __THROW; | |
^~~~ | |
tes.c:31:1: warning: data definition has no type or storage class | |
chfl_frame_free(frame); | |
^~~~~~~~~~~~~~~ | |
tes.c:31:1: warning: type defaults to ‘int’ in declaration of ‘chfl_frame_free’ [-Wimplicit-int] | |
tes.c:31:1: warning: parameter names (without types) in function declaration | |
tes.c:31:1: error: conflicting types for ‘chfl_frame_free’ | |
In file included from /home/german/labo/18/chemfiles/build/install/include/chemfiles.h:14:0, | |
from tes.c:1: | |
/home/german/labo/18/chemfiles/build/install/include/chemfiles/capi/frame.h:301:25: note: previous declaration of ‘chfl_frame_free’ was here | |
CHFL_EXPORT chfl_status chfl_frame_free(CHFL_FRAME* frame); | |
^~~~~~~~~~~~~~~ | |
tes.c:32:1: warning: data definition has no type or storage class | |
chfl_trajectory_close(file); | |
^~~~~~~~~~~~~~~~~~~~~ | |
tes.c:32:1: warning: type defaults to ‘int’ in declaration of ‘chfl_trajectory_close’ [-Wimplicit-int] | |
tes.c:32:1: warning: parameter names (without types) in function declaration | |
tes.c:32:1: error: conflicting types for ‘chfl_trajectory_close’ | |
In file included from /home/german/labo/18/chemfiles/build/install/include/chemfiles.h:15:0, | |
from tes.c:1: | |
/home/german/labo/18/chemfiles/build/install/include/chemfiles/capi/trajectory.h:128:25: note: previous declaration of ‘chfl_trajectory_close’ was here | |
CHFL_EXPORT chfl_status chfl_trajectory_close(CHFL_TRAJECTORY* trajectory); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment