- 下に日本語版があります
- Japanese follows English
- This repository contains my project for Rank 00 of the core curriculum at 42Tokyo.
- The project is done in November 2024.
- The specific project assignments are confidential, but students are permitted to publish their own code.
- Note to 42 students: This code may have been modified after its official evaluation. I cannot guarantee it will pass reviews.
- Libft is a project where students re-implement a set of standard C library functions to create a personal static library.
- This library will be used in many subsequent projects from Rank 01 onwards.
- OS: Ubuntu 22.04 LTS (Jammy Jellyfish)
- Compiler:
cc(typically a symlink togcc) - Build Tool:
make
-
Clone the repository:
git clone [repository_url]
-
Navigate to the project directory:
cd [cloned_path] -
Compile the library:
make
This command creates the static library file,
libft.a. -
Using the library: To link the
libft.alibrary with your program (e.g.,main.c), use the following command:cc main.c -L. -lft
-L.tells the compiler to search for libraries in the current directory.-lfttells the linker to link thelibftlibrary.
- このリポジトリは42Tokyo の基礎課程 (Rank 00) のプロジェクトです。
- このプロジェクトは2024.11に完了しています。
- 課題の詳細は公開が禁止されていますが、学生が自身で書いたコードを公開することは許可されています。
- 42の学生へ: このコードは評価時から変更されている可能性があります。そのため、このコードを参考にしたとき、レビューに合格することは保証しません。
- Libft は、C言語の標準ライブラリ関数の一部を再実装し、個人用の静的ライブラリを作成するプロジェクトです。
- このLibftライブラリは、Rank01以降のプロジェクトで使用されます。
- OS: Ubuntu 22.04 LTS (Jammy Jellyfish)
- コンパイラ:
cc(実際にはgccへのシンボリックリンクであることが多い) - ビルドツール:
make
-
リポジトリをクローンする:
git clone [repository_url]
-
プロジェクトディレクトリに移動する:
cd [cloned_path] -
ライブラリをコンパイルする:
make
このコマンドで
libft.aが生成されます -
ライブラリを使用する: 参考: 作成した
libft.aを自作のプログラム(例:main.c)とリンクする方法cc main.c -L. -lft
-L.は、現在のディレクトリでライブラリファイルを探す-lftは、libftライブラリをリンク