Add a '-lm' to the gcc line and it should link and run.

gcc -o krisncv_9 krisncv_9.c -lm

The compiler still gives a bunch of warnings though.

Drew

Stuart Stevenson wrote:
> Gentlemen,
>     Here is a 2 1/2 axis programming application we use to a limited
> extent in our shop. Use it if you wish. As it is written it compiles
> and runs in windows. I have been trying to compile it to use in EMC2.
> I get errors and no file to run.
> 
> krisncv_9.c:350:18: warning: multi-character character constant
> krisncv_9.c: In function 'Toolnumber':
> krisncv_9.c:350: warning: overflow in implicit constant conversion
> krisncv_9.c:374:15: warning: multi-character character constant
> krisncv_9.c: In function 'Next':
> krisncv_9.c:374: warning: overflow in implicit constant conversion
> krisncv_9.c:392:18: warning: multi-character character constant
> krisncv_9.c: In function 'Diametertool':
> krisncv_9.c:392: warning: overflow in implicit constant conversion
> krisncv_9.c:411:21: warning: multi-character character constant
> krisncv_9.c: In function 'Lengthtool':
> krisncv_9.c:411: warning: overflow in implicit constant conversion
> krisncv_9.c:734:18: warning: multi-character character constant
> krisncv_9.c: In function 'Holes':
> krisncv_9.c:734: warning: overflow in implicit constant conversion
> krisncv_9.c:996:16: warning: multi-character character constant
> krisncv_9.c: In function 'Xholes':
> krisncv_9.c:996: warning: overflow in implicit constant conversion
> krisncv_9.c:1014:16: warning: multi-character character constant
> krisncv_9.c: In function 'Yholes':
> krisncv_9.c:1014: warning: overflow in implicit constant conversion
> /tmp/ccHtazVV.o: In function
> `Compute_positions':krisncv_9.c:(.text+0x2114): undefined reference to
> `cos'
> :krisncv_9.c:(.text+0x2147): undefined reference to `sin'
> /tmp/ccHtazVV.o: In function
> `Kellerradius':krisncv_9.c:(.text+0x5e64): undefined reference to
> `atan'
> :krisncv_9.c:(.text+0x5f95): undefined reference to `sin'
> :krisncv_9.c:(.text+0x5fe2): undefined reference to `cos'
> collect2: ld returned 1 exit status
> 
>     I have placed the files on www.mpm1.com:8080 under the kris
> directory. Would someone get these files, correct them and
> educate me as to why gcc will not compile them?
> thanks
> Stuart
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 

-- 
Drew Rogge
[EMAIL PROTECTED]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to