philburk / pforth

Portable Forth in C
BSD Zero Clause License
588 stars 94 forks source link

How to build the m library? #141

Open gwankyun opened 1 year ago

gwankyun commented 1 year ago
# 1. Build pforth executable
add_executable(pforth csrc/pf_main.c)
target_link_libraries(pforth ${PROJECT_NAME}_lib m)

How to compile the m library in MSVC?

philburk commented 1 year ago

The m library is the math library that is included with the tool chain. If you do not have an m library then try not enabling the floating point support.

On Tue, Jan 3, 2023, 20:04 權少 @.***> wrote:

1. Build pforth executableadd_executable(pforth csrc/pf_main.c)target_link_libraries(pforth ${PROJECT_NAME}_lib m)

How to compile the m library?

— Reply to this email directly, view it on GitHub https://github.com/philburk/pforth/issues/141, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHPU2PXE3HXLTE5UDWKMGTWQUHFRANCNFSM6AAAAAATQNMGSU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

philburk commented 1 year ago

I see that you were asking about MSVC. I have only been building and testing on Mac and Linux. Clearly I need to provide better support for Windows and MSVC. I will add an Issue to do a windows build.

gwankyun commented 1 year ago

Thank you and look forward to it.