math.h Problem in Externel Lib

asifdip
2011-11-25
2023-08-17
  • asifdip - 2011-11-25

    Hello,
    Can anybody tells me that why i have errors when I have creating an external Library in Visual c++. As normally I have no error when I create a simple external library with C (without SIN, COS or math.h) like A=B+C;

    But when I write trigonometric function program (Y=SIN X ) with math.h in Visual C++ with Functional Block then I have two errors.

    Error:C:\DOCUMENTS AND SETTINGS\WIM\MIJN DOCUMENTEN\CODESYSTEST11\SIN_LIB.OBJ' (Symbol '_sin', Class 'EXTERNAL', Type 'REL32')

    Error:C:\DOCUMENTS AND SETTINGS\WIM\MIJN DOCUMENTEN\CODESYSTEST11\SIN_LIB.OBJ' (Symbol '_RTC_CheakEsp, Class 'EXTERNAL', Type 'REL32')

    Please give a small idea as I need to create a external library where I have to use lot of SIN COS TAN.

    Thanks
    Asif

     
  • shooter - 2011-12-02

    why you need to go external,
    SIN is inside codesys and if needed better progs look at w www.oscat.de w
    (i saw btw 32bit, is this same type as in codesys?

     
  • asifdip - 2012-01-11

    Hi shooter,
    Basically i can use SIN, COS TAN in CodeSys and I already used it. It is not my problem. I have a big Sun position algorithm and it is huge big, Anyway I want to link that C Code (Sun position algorithm) where math.h is present as external library. but I can not create an external library for math.h. So at first i want to create a simple external libray for math.h and with SIN, COS function. then I want to make an external library for big SUN position algorithm. I hope, you got my problem.......

    Bye
    Asif

     

Log in to post a comment.