Skip to content

Commit c9482c8

Browse files
author
Piotr Gabryjeluk
committed
Bugfix in README (needed flag is -fpack-struct)
1 parent 52c00d0 commit c9482c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ COMPILING
113113

114114
Compile programs with:
115115

116-
gcc -falign-struct gta02-gps.c -o gta02-gps
116+
gcc -fpack-struct gta02-gps.c -o gta02-gps
117117

118118
The code is also compilable by g++ C++ compiler.
119119

120-
-falign-struct is needed, because one of the structs
120+
-fpack-struct is needed, because one of the structs
121121
in ubx.h is not properly aligned and so will be
122-
padded if -falign-struct is not passed.
122+
padded if -fpack-struct is not passed.
123123

124124
Makefile should do the job, just type:
125125

0 commit comments

Comments
 (0)