Results 1 to 3 of 3

Thread: LNK2001: unresolved external symbol miaux_quantize

  1. #1
    Join Date
    Oct 2013
    Posts
    4

    Default LNK2001: unresolved external symbol miaux_quantize

    Hey guys,

    I'm trying to write my first toon shader and using Visual Studio Express 2012.
    When I build the solution, I get two errors:
    error LNK2001: unresolved external symbol miaux_quantize
    error LNK1120: 1 unresolved externals

    Code:
    #include "shader.h"
    #include "miaux.h"
    
    struct front_bright_steps { 
        miColor tint; 
        miInteger steps;
    };
    
    DLLEXPORT
    int front_bright_steps_version(void) { return(1); }
    
    DLLEXPORT
    miBoolean front_bright_steps ( 
        miColor *result, miState *state, struct front_bright_steps *params  )
    {
        miColor *tint = mi_eval_color(&params->tint);
        miScalar scale = 
            miaux_quantize(-state->dot_nd, *mi_eval_integer(&params->steps));
        result->r = tint->r * scale;
        result->g = tint->g * scale;
        result->b = tint->b * scale;
        result->a = 1.0;
        return miTRUE;
    }
    Unbenannt.jpg

    Can somebody maybe help and tell me what this is and what I can do about it?
    Attached Images Attached Images

  2. #2
    Join Date
    May 2011
    Posts
    23

    Default

    Visual studio can not find the miaux_quantize function. You have to include the header file within the project settings (additional include files section)

  3. #3
    Join Date
    Jan 2019
    Location
    Burkina Faso
    Posts
    1

    Default LNK2001 unresolved external symbol miaux_quantize

    but of you are compiling the DLL and the DLL links, then there are not external references.
    are you trying to call that function yourself?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •