---
title: "[WIZnet-PICO-C example] Failed compilation on Linux Evironment"
url: "https://maker.wiznet.io/forum/15747"
markdown_url: "https://maker.wiznet.io/forum/15747/md"
type: "Forum topic"
category: "General"
author: "Aimee0"
created: "2025-06-05T13:19:07+09:00"
last_activity: "2025-06-05T13:19:07+09:00"
language: "en"
views: 1
replies: 0
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# [WIZnet-PICO-C example] Failed compilation on Linux Evironment

## Question

Asked by Aimee0 on 2025-06-05 in General.

### **🔧 Failed compilation on Linux Evironment**

<https://github.com/aimee0000/TSG_maker/blob/main/WIZnet_PICO_C_Troubleshooting.md#-failed-compilation-on-linux-evironment>

Problem Phenomenon (The issue):

- When running the `make` command, an error occurs during the linking stage of the `w5x00_tftp_client.elf` executable. The error reports undefined references to the function `save_data` in the `tftp.c` file, specifically at lines 440 and 423.

Cause (The cause of the issue):

- The cause of the issue is likely missing or incorrect definitions for the `save_data` function in the `tftp.c` file, leading to undefined reference errors during the linking process.

Solution (Concrete code changes, configuration changes, step-by-step actions, etc., that actually solved the problem):

- Apply a patch to the project to resolve the undefined reference errors. Follow these steps:
  1. Navigate to the `ioLibrary_Driver` directory within the project:

```
cd libraries/ioLibrary_Driver
```

1. Apply the patch using the `git apply` command:

```
git apply ../../patches/0002_iolibrary_driver_tftp.patch
```

- For additional information or troubleshooting, refer to the provided [README](https://github.com/WIZnet-ioNIC/WIZnet-PICO-C/blob/main/examples/tftp/README.md) document.

- If the issue persists, further support may be necessary.

[View GitHub Issue](https://github.com/WIZnet-ioNIC/WIZnet-PICO-C/issues/9)

---

Source: https://maker.wiznet.io/forum/15747
