Lab 4 - FL13 - ECE 198 JL - University of Illinois - Engineering Wiki

Jus t a minor proof reading s ugges tion the s entenc

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: mputation part, do we need to c hange the return ty pe, for ex ample to uns igned too? I gues s not s inc e i get an error "error: return ty pe of 'main' is not 'int' " Volodymyr Kindratenko says: Sep 16 Sep 16 main's return ty pe is not relevant here. Do not c hange it. Andrew W einer says: Sep 17 Looping Constructs in C In every programming language, thus als o in the C programming language, there are c irc ums tanc es where y ou want to do the s ame thing many times . To do this in the as s embly language y ou us ed a label. Jus t a minor proof-reading s ugges tion. The s entenc e "To do this in the as s embly language y ou us ed a label" is probably left over from pas t vers ions of this c las s when we had ac tually work ed with as s embly language by this point. Volodymyr Kindratenko says: Sep 17 Good point! Fix ed. Gregory Linkow ski says: Sep 17 I'm having trouble with the s y ntax when it c omes to link ing the math.h library . Can I us e the c ompres s ed c ompile c ommand? And if s o, how do I alter it to inc lude math.h? I have gc c -g -s td= c 99 -W all -W error -o lab4 -l c math.h lab4.c I've tried multiple variations , inc luding math.c , math, adding another -l before math, and probably s ome others . I als o tried the more ex tended ld c ommand, but that k ept erroring als o, even when I c hanged both 4.4.5 to 4.4.7 Volodymyr Kindratenko says: Sep 17 Pleas e read "Link ing libraries with C" in Lab 3. gc c -g -s td= c 99 -W all -W error -o lab4 -lm lab4.c Daniel Baldw in says: Sep 18 I c annot log into the EW S c omputers at all. W henever I enter my login information it returns the error "Server c apac ity reac hed for us er" Volodymyr Kindratenko says: Sep 18 Pleas e c ontac t ews or c ites for help. Pavan Kumar Narendrula says: Sep 18 I am having trouble us ing EW S c omputers too. I went to CITES des k and c ontac ted EW S offic e and they have no idea whats wrong. Jienan Tang says: Sep 18 me too.nothing work s in my c omputer. Sep 18 Anselmo Shim says: EW S c omputers are work ing for me right now. May be try a different lab? Sep 18 Hemant Raw at says: s o I finis hed my c od and i inputed the c ommand gc c -S -o lab4.s lab4.i but the res ults i got was lab4.c :5: error: ex pec ted identifier or ‘(’ before ‘{’ tok en what does it mean? I tried adding a ( before the { in my c od but nothing s eems to work Volodymyr Kindratenko says: c ompile with gc c -g -s td= c 99 -W all -W error -o lab4 -lm lab4.c Sep 18...
View Full Document

This document was uploaded on 03/22/2014.

Ask a homework question - tutors are online