aelmicro

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Compile *.c files as C++ (Using IAR) #28639
    aelmicro
    Participant

    hands up, my mistake, I was not copying all the source files to the compiling PC, all works as it should

    Keep up the good work!

     

    in reply to: Compile *.c files as C++ (Using IAR) #28638
    aelmicro
    Participant

    OK so I had some luck.

    This works if I copy the *.c file into the same directory as my other *.cpp files, which happens to be the same file as the project.

    It would appers that it can’t find a make rule if the source file is in a different folder to the project folder.

    Mark

     

    in reply to: Compile *.c files as C++ (Using IAR) #28636
    aelmicro
    Participant

    Uploaded .mak file

    Attachments:
    You must be logged in to view attached files.
    in reply to: Compile *.c files as C++ (Using IAR) #28635
    aelmicro
    Participant

    Had this problem when I tried to add a .c file to my other 3 *.cpp files which all compile OK

    It appears to indicate no rule in the make file to compile the .c file, but there is one!

    C:\Projects\PixieBoards\Software\PixieLvLib => /tmp/VisualGDB/c/Projects/PixieBoards/Software/PixieLvLib: 6 files are up-to-date.
    make -f “VisualGDB/Debug/PixieLvLib.msbuild-mak” –no-print-directory
    mkdir -p VisualGDB/Debug/_4_/tmp/VisualGDB/c/Projects/PixieBoards/Software/Source VisualGDB/Debug
    make[1]: *** No rule to make target ‘/tmp/VisualGDB/c/Projects/PixieBoards/Software/PixieLvLib/../Source/PixieInfo.c’, needed by ‘VisualGDB/Debug/_4_/tmp/VisualGDB/c/Projects/PixieBoards/Software/Source/PixieInfo.o’. Stop.
    make: *** [VisualGDB/Debug/PixieLvLib.msbuild-mak:14: all] Error 2
    ————————————————————-
    Command exited with code 2
    Executable: make
    Arguments: -f “VisualGDB/Debug/PixieLvLib.msbuild-mak” –no-print-directory
    Directory: /tmp/VisualGDB/c/Projects/PixieBoards/Software/PixieLvLib
    Command-line action failed

Viewing 4 posts - 1 through 4 (of 4 total)