【发布时间】:2012-11-16 01:56:47
【问题描述】:
我一直在阅读http://www.sfml-dev.org/tutorials/1.6/ 的教程,但在using views tutorial 中遇到了问题。
这是我正在处理的代码部分:
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
int main(){
// Create instance of Window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
sf::Vector2 Center(1000, 1000);
sf::Vector2 HalfSize(400, 300);
sf::View View1(Center, HalfSize);
// So on...
我正在使用 Mac OSX 10.8,并且正在使用 g++ 进行编译。我收到错误消息:
error: missing template arguments before ‘Center’
我该如何纠正这个错误?
编辑:我不知何故读错了教程。成为 Vector2f。
【问题讨论】: