From 065150337afb40246c5fed8eea68250dbd410182 Mon Sep 17 00:00:00 2001 From: nhz2 Date: Sun, 30 Jun 2024 10:36:59 -0400 Subject: [PATCH 1/2] fix example how to compile instructions --- examples/noinit.c | 3 +-- examples/simple.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/noinit.c b/examples/noinit.c index 24caf8d9..2f4ba066 100644 --- a/examples/noinit.c +++ b/examples/noinit.c @@ -12,8 +12,7 @@ or, if you don't have the blosc library installed yet: - $ gcc -O3 -msse2 noinit.c -I../blosc -o noinit -L../build/blosc - $ export LD_LIBRARY_PATH=../build/blosc + $ gcc -O3 -msse2 noinit.c ../blosc/*.c -I../blosc -o noinit Using MSVC on Windows: diff --git a/examples/simple.c b/examples/simple.c index cd39ca30..22aaef1c 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -11,7 +11,7 @@ or, if you don't have the blosc library installed: - $ gcc -O3 -msse2 simple.c -I../blosc -o simple -L../build/blosc + $ gcc -O3 -msse2 simple.c ../blosc/*.c -I../blosc -o simple Using MSVC on Windows: From 2066379b4db073646a9facf6e7689f0e6e4afc1a Mon Sep 17 00:00:00 2001 From: nhz2 Date: Mon, 8 Jul 2024 15:37:03 -0400 Subject: [PATCH 2/2] link an already built libblosc.a --- examples/noinit.c | 2 +- examples/simple.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/noinit.c b/examples/noinit.c index 2f4ba066..3ccf9fea 100644 --- a/examples/noinit.c +++ b/examples/noinit.c @@ -12,7 +12,7 @@ or, if you don't have the blosc library installed yet: - $ gcc -O3 -msse2 noinit.c ../blosc/*.c -I../blosc -o noinit + $ gcc noinit.c -I../blosc -o noinit ../build/blosc/libblosc.a Using MSVC on Windows: diff --git a/examples/simple.c b/examples/simple.c index 22aaef1c..281a5b86 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -11,7 +11,7 @@ or, if you don't have the blosc library installed: - $ gcc -O3 -msse2 simple.c ../blosc/*.c -I../blosc -o simple + $ gcc simple.c -I../blosc -o simple ../build/blosc/libblosc.a Using MSVC on Windows: