cacharle / libasm_test

libasm test

Home Page:https://git.cacharle.xyz/libasm_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libasm_test Build Status

Test for the libasm project of school 42.

preview

Usage

The default path to your libasm is ../libasm. You can modify it in the Makefile.

$ make

Bonus

You need to make fclean when switching from all to bonus.

$ make bonus

Or:

Set the environment variable LIBASM_TEST_BONUS to yes.

$ echo 'export LIBASM_TEST_BONUS=yes' >> ~/.zshrc

Common issues

ft_write and ft_read crash

https://stackoverflow.com/c/42network/questions/1494

Compilation on linux with gcc

To fix the relocation R_X86_64_PC32 against symbol error you can add inside your libasm source code wrt ..plt after a call to a libc function, like example below:

    ...
    call __errno_location wrt ..plt
    ...

Now you should be able to compile with gcc

About

libasm test

https://git.cacharle.xyz/libasm_test

License:GNU General Public License v3.0


Languages

Language:C 91.2%Language:Python 5.4%Language:Makefile 3.4%