1

C アプリケーションをコンパイルするのはこれが初めてです。Ubuntuボックスでgccを使用しています。チュートリアルでは、構文を使用するように言われています:

gcc main.c -o HelloWorld

しかし、私のプログラムには「main.c」がありません。

以下のディレクトリ リストに基づいて、アプリケーションのコマンド ラインを提案できる人はいますか?

docs  lib  License  major.awk  Makefile  README  release.awk  src  WARNING

./docs:
ChangeLog.txt  Contributors.txt  DataTypes.txt  Makefile  New_help_needed.txt  Porting.txt  Readme.txt  undoc_file_struct.txt  undocumented_df1.txt  WARNING.txt

./lib:
attach.c        disableforces.c  echo.c          floatstuff.c  Makefile      protected_read_2.c   protected_write_3.c  resetmemory.c  typedwrite.c     wordblockwrite.c
closefile.c     downloaddone.c   enableforces.c  getedit.c     nameconv5.c   protected_read_3.c   protected_write_4.c  senddf1.c      uploaddone.c
creatememory.c  downloadreq.c    fileread.c      getstatus.c   openfile.c    protected_read_4.c   readbytesphysical.c  setpriv.c      uploadreq.c
defs.c          dropedit.c       filewrite.c     libabplc5.h   plcmodereq.c  protected_write_2.c  readsectionsize.c    typedread.c    wordblockread.c

./src:
absetmode.c  abstat.c  abtypedread.c  abtypedwrite.c  abupload.c  abwordread.c  abwordwrite.c  Makefile  Makefile.old  name.c  section.c  slcread.c  slcwrite.c  stress.c

どうもありがとう。

4

2 に答える 2

3

最上位ディレクトリに Makefile があるので、ビルドするだけです

make
于 2013-05-13T11:04:52.147 に答える