15 OF 100DAYS

21:29

  1. @微型计算机8251作业+8255实验二
  2. @操作系统 实验二预习报告 文件管理_设备管理教材
  3. 计算机网络实验三报告
  4. @/计算机图形学上机作业 + 实验*3 + 大作业
  5. @数字图像处理实验*2
  6. @MATLAB实验三 + 复习

今天配置OpenGL freeglut和glew
1. 在附加包含目录和附加库目录下添加 .\include .\lib更好用
2. fatal error gl.h included before glew.h
freeglut.h will include gl.h. You have to include glew.h before freeglut.h. glew is a very good and popular library but this gl.h included before glew.h is a major constraint!
I see. But this shouldn’t have been such a problem. They could solve that by adding include guards in glu.h, or gl.h, or just the #pragma once directive, like it’s always happening in such situations to avoid adding the same header file multiple times. I don’t see why they didn’t do that. I’m pissed because i don’t understand why such easy things need to become complicated. Imagine someone trying to troubleshoot such an issue with limited internet access, or few knowledgeable people around. He would never be able to proceed! Anyway. Just saying. Thanks.
3.一个懵懂的地方

// 表示不使用debug的lib,使用release的lib,如果去除,将使用debug的lib  
#define NDEBUG<span style="white-space:pre">                  </span>
#include <glut.h>  <span style="white-space:pre">               </span>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值