Marcus Lindblom schrieb:
> Sadi Tanis wrote:
> 
>>Marcus Lindblom schrieb:
> 
>  >
> 
>>>Please give more information than "doesn't work". Compile error? Link error? 
>>>Runtime error?
>>
>>There are two link errors, LNK2019 and LNK1120. 
> 
> 
> Sadi. In order for anyone to help you with programming problems, you 
> must learn how to provide necessary information. (see the internet for 
> 'how to ask questions'.)
> 
> Describe your error fully, your thoughts about it (if you don't 
> understand, ask somewhere appropriate. Either a newsgroup for your 
> compiler, if it's a general question, or, if the error is strange and 
> you think it's OpenSG-related, here). Also, providing vital or full 
> input & output of your tools always helps. (Thus, learn how to find the 
> compiler/linker options used and finding/interpreting the output is 
> vital if you want to survive as a coder :)

Sorry for that :) I will try my best the next time.

> 
> So, in this case, please post:
> 
>   1. the linker input (available in build log, assuming your using 
> visual studio)
>   2. the linker output (in the build window, where you get the error 
> messages)
> 
> Also, try to think about the error message text, read the help (and thus 
> probable causes and fixes) for them. (Go to msdn.microsoft.com if you do 
> not have help installed). Do anything you read seem relevant to your 
> code? (It doesn't always help, since C++ is complicated, but reading and 
> thinking is always good. :)
> 
> 
>>I suppose it has 
>>something to do with this part:
>>
>> > traverse(scene,
>> >     osgTypedFunctionFunctor1CPtrRef
>> >     <Action::ResultE, NodePtr>(enter));
>>
> 
> 
> I would guess that the linker claims it can't find OSG::enter(NodePtr&).
> 
> If so, your problem is that the above call sees your declaration of 
> enter in 'checkName.h'. So it looks for OSG::enter.
> 
> The definition in checkName.cpp does not define enter within the OSG 
> namespace (it does not see your declaration, nor is the definition 
> within OSG namespaces).
> 
> Solve it by including 'checkname.h' from 'checkname.cpp'. (always a good 
> policy) and/or change 'checkname.cpp' to actually put the 'enter' 
> function within the OSG namespace.
> 
> Actually, I would not put my own functions (such as 'enter') within the 
> OSG namespace, I'd either put it globally or, even better, in one of my 
> own namespaces.
> 
> Hope it helps. :)
> 
> Cheers,
> /Marcus

Thank you for helping me nevertheless. At the moment it works

regards,
Sadi


-- 
Sadi Tanis
University of Koblenz/Landau
Student of Computer Vision
Simmerner Straße 134
56075 Koblenz Germany
Tel. +49.261.208.98.73
E-mail [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
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to