Skip to main content
JSILV.2
Associate III
June 5, 2020
Question

Where to place own source/header files on CUBE IDE?

  • June 5, 2020
  • 2 replies
  • 729 views

Even copying and pasting my *.h & *.c files into my new project CUBE IDE does not accept these files, issuing: "No such file or directory" and aborting the compilation. What should I do?

My bult: Version: 1.3.1

Build: 6291_20200406_0752 (UTC)

This topic has been closed for replies.

2 replies

TDK
Super User
June 5, 2020

Generally, you place them in the same directory as main.c and main.h, although you can put them elsewhere if you tell the IDE about those directories. Drag/drop into the directory should work.

"If you feel a post has answered your question, please click ""Accept as Solution""."
JSILV.2
JSILV.2Author
Associate III
June 11, 2020

Thanks for your answer.

In spite of we have the explained two ways to insert customer files, the drag & drop method seems to produce less "warning" messages.