Created
July 18, 2014 01:48
-
-
Save capoferro/da2e916f90743f10fb0b to your computer and use it in GitHub Desktop.
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
$ go run scratch.go | |
# command-line-arguments | |
In file included from ./scratch.go:5: | |
/usr/local/include/librsync.h:367:21: error: unknown type name 'FILE' | |
void rs_mdfour_file(FILE *in_file, char *result); | |
^ | |
/usr/local/include/librsync.h:369:23: error: unknown type name 'FILE' | |
rs_result rs_sig_file(FILE *old_file, FILE *sig_file, | |
^ | |
/usr/local/include/librsync.h:369:39: error: unknown type name 'FILE' | |
rs_result rs_sig_file(FILE *old_file, FILE *sig_file, | |
^ | |
/usr/local/include/librsync.h:372:27: error: unknown type name 'FILE' | |
rs_result rs_loadsig_file(FILE *, rs_signature_t **, rs_stats_t *); | |
^ | |
/usr/local/include/librsync.h:376:43: error: unknown type name 'FILE' | |
rs_result rs_delta_file(rs_signature_t *, FILE *new_file, FILE *delta_file, rs_stats_t *); | |
^ | |
/usr/local/include/librsync.h:376:59: error: unknown type name 'FILE' | |
rs_result rs_delta_file(rs_signature_t *, FILE *new_file, FILE *delta_file, rs_stats_t *); | |
^ | |
/usr/local/include/librsync.h:378:25: error: unknown type name 'FILE' | |
rs_result rs_patch_file(FILE *basis_file, FILE *delta_file, FILE *new_file, rs_stats_t *); | |
^ | |
/usr/local/include/librsync.h:378:43: error: unknown type name 'FILE' | |
rs_result rs_patch_file(FILE *basis_file, FILE *delta_file, FILE *new_file, rs_stats_t *); | |
^ | |
/usr/local/include/librsync.h:378:61: error: unknown type name 'FILE' | |
rs_result rs_patch_file(FILE *basis_file, FILE *delta_file, FILE *new_file, rs_stats_t *); | |
^ | |
9 errors generated. |
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
package main | |
/* | |
#include <stdlib.h> | |
#include <librsync.h> | |
*/ | |
import "C" | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Printf("%d", C.random()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment