Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: How to compile and execute ansi c project

$
0
0

Hi,

I tried to test some functions in.c and see the results through console by not using any controller boards just like using same as visual studio. I am using lm3s9b96 and ok to use ccs5 with the board.

What I am thinking is ccs is a eclipse based IDE, so probably I can test just regular c projects by using plug-ins

My development envs are:

ccs 5.4.0

window xp 32bits service pack3

1. New project -> c project -> Hello world ansi c project --> there are two toolchanins(1. cross gcc 2. microsoft visual c++) -> I wasnot sure cross gcc works in window os, so choose MS c++

2. below codes template came out:

#include <stdio.h>
#include <stdlib.h>

int main(void) {
    puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */ // probably printf() should be working as well !!
    return EXIT_SUCCESS;
}

3. compile and hit error :
LNK1104: cannot open file 'kernel32.lib'    test        line 0    C/C++ Problem

I have tried to find an answer through forum, but so far I don't see similar concerns, so I post it here

Anyone knows how to set up c project testing thru the console?


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>