Skip to content

Does not compile under Mac OSX #9

Description

@tacbio

system info:
gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer//usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.4.0
Thread model: posix

what i did:
git clone https://github.com/schani/metapixel.git
cd metapixel
git submodule update --init
make

gcc -g -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Wall -DMETAPIXEL_VERSION="1.1.0" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -DCONSOLE_OUTPUT pkg-config --cflags glib-2.0 -c search.c
search.c:59:2: error: function definition is not allowed here
{
^
search.c:127:2: error: function definition is not allowed here
{
^
search.c:155:2: warning: implicit declaration of function 'check_orientation' is invalid in C99 [-Wimplicit-function-declaration]
check_orientation(pixel, pixel_index, compare_func_set->compare_no_flip, 0);
^
1 warning and 2 errors generated.
make: *** [Makefile:60: search.o] Error 1

Any idea?
thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions