Jump to content

  • Log In with Google      Sign In   
  • Create Account

How adjust compiler for NVIDIA OpenGL SDK 10 lib


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Nawy   Members   -  Reputation: 127

Like
0Likes
Like

Posted 25 May 2013 - 12:49 PM

I wrrite programm in C++ and use g++. There are a few files.

main.cpp - wherein two include directives, and function main,which return 0

is include

 

 

#include <iostream>
#include <nvModel.h> // our header from NVIDIA
 

I wrote makefile:

 

CC = g++
EXE = nvTest

DIR1 = -I"C:\Program Files (x86)\NVIDIA Corporation\NVIDIA OpenGL SDK 10\common\include"
DIR2 = -I"C:\Program Files (x86)\NVIDIA Corporation\NVIDIA OpenGL SDK 10\common\GLEW\include"
DIR3 = -I"C:\Program Files (x86)\NVIDIA Corporation\NVIDIA OpenGL SDK 10\common\nvModel\include"
DIR4 = -I"C:\Program Files (x86)\NVIDIA Corporation\NVIDIA OpenGL SDK 10\common\nvWidgets\include"
DIR5 = -I"C:\Program Files (x86)\NVIDIA Corporation\NVIDIA OpenGL SDK 10\common\nvImage\include"
DIR6 = -I"C:\Program Files (x86)\NVIDIA Corporation\NVIDIA OpenGL SDK 10\common\nvGUI\include"

LDFLAGS = -L"C:/Program Files (x86)/NVIDIA Corporation/NVIDIA OpenGL SDK 10/common/nvModel/lib"
LIBS = -lnvModel

INCLUDE += $(DIR1)
INCLUDE += $(DIR2)
INCLUDE += $(DIR3)
INCLUDE += $(DIR4)
INCLUDE += $(DIR5)
INCLUDE += $(DIR6)
all:
$(CC) main.cpp $(LDFLAGS) $(LIBS) -o $(EXE) $(INCLUDE)

But g++ return very a lot of errors. These errors printed in file. Download or online see http://yadi.sk/d/0JMHyPEh59nl2

Please, help me. What am I doing wrong?

 

P.s. I asked about this problem, on a lot of Russian Programmers Forums, but silence...

Attached Files



Sponsor:

#2 Nawy   Members   -  Reputation: 127

Like
0Likes
Like

Posted 26 May 2013 - 01:09 AM

Exemples contains: nvModel.dll, nvModel.lib, nvModel.h, and source files.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS