AnsweredAssumed Answered

undefined reference to `fopen'

Question asked by jeff qin on Dec 14, 2017
Latest reply on Dec 15, 2017 by jeff qin

Hi, dears:

   I use S32DS to open an file, but when compile it shows:"undefined reference to `fopen'".

 My GCC is: S32K144 RTM SDK for GCC.

C project. No OS. And use S32DS "project ->build all" to build.

What should I do to fix this?

Thanks!

 

My code:

#include <stdio.h>

......

fp = fopen("BAP3_PATCH_SC58579_ROM_7_2.bin","rb");

Outcomes