A question about programming with Renderman C-binding

各位可在這裡交流有關RenderMan的問題和分享制作經驗

A question about programming with Renderman C-binding

文章mayax » 5日 7月 2002年, 10:24

I wrote some little programs which was programmed with Renderman C-binding.
They really works while I built them with Prman 3.9 Libraries.

But today I tried to build them with Prman 10 Libraries, the program didn't work correctly.

In before, it generated an RIB file or display the code.But now it does nothing...

The souce code of one simple program:
_____________________________________________

RtColor cs = {1,0,0};

RiBegin("test.rib");

RiDisplay("test.iff","mayaiff","rgbaz",RI_NULL);

RiFormat((RtInt) 640, (RtInt) 480, -1.0);

RiShadingRate(1.0);

RiProjection("perspective", RI_NULL);

RiRotate(45,1,0,0);

RiWorldBegin();

RiSurface("test","color ss",cs, RI_NULL);
RiPolygon( (RtInt) 4, RI_P, (RtPointer) Square, RI_NULL);
RiWorldEnd();

RiEnd(); /* Clean up */



____________________

LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
librib.lib(uuid.o) : error LNK2001: unresolved external symbol __imp__gethostbyname@4
librib.lib(uuid.o) : error LNK2001: unresolved external symbol __imp__gethostname@8
librib.lib(uuid.o) : error LNK2001: unresolved external symbol _Netbios@4

The error message is above.
mayax@cg.rendermanism:JustFreeYourMind!
mayax
討論區新秀
討論區新秀
 
文章: 8
註冊時間: 23日 6月 2002年, 09:19
來自: gz

Share On:

Share on Facebook Facebook Share on Twitter Twitter

文章mayax » 7日 7月 2002年, 09:36

I solved it !


Add two libs in linking:

netapi32.lib
wsock32.lib

:)
mayax@cg.rendermanism:JustFreeYourMind!
mayax
討論區新秀
討論區新秀
 
文章: 8
註冊時間: 23日 6月 2002年, 09:19
來自: gz


回到 Pixar's RenderMan

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 6 位訪客

cron